[Solved] Error opening pdf greater than 1 Mb

A place for users and developers of the Xataface to discuss and receive support.

[Solved] Error opening pdf greater than 1 Mb

Postby tomtom8 » Thu Nov 08, 2012 4:58 am

hello
I have a problem with the pdf file, I can not open those exceeding 1 Mb, I must say that before I could open them without problem now I get error from Adobe Reader: Error opening the document. The file is damaged and can not be repaired. But I open the document from the folder PDFoutline with FTP.
My version is 1.5 2734

thanks
Michele
Last edited by tomtom8 on Sun Nov 11, 2012 5:21 am, edited 1 time in total.
tomtom8
 
Posts: 17
Joined: Mon Jul 30, 2012 6:56 am

Re: Error opening pdf greater than 1 Mb

Postby shannah » Thu Nov 08, 2012 8:55 am

What PDF file are you referring to?
--
Steve Hannah
@shannah78 (on twitter)
sjhannah.com blog
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Re: Error opening pdf greater than 1 Mb

Postby tomtom8 » Fri Nov 09, 2012 2:00 am

Type = container

allowed_extension = pdf
allowed_mimetypes = applications/pdf
tomtom8
 
Posts: 17
Joined: Mon Jul 30, 2012 6:56 am

Re: Error opening pdf greater than 1 Mb

Postby shannah » Fri Nov 09, 2012 9:01 am

Try opening the PDF in a text editor. Perhaps there is a PHP error at the beginning of it? Are you using the secure=1 flag, or no? Are you able to upload it successfully/ i.e. does this only happen on download?.
--
Steve Hannah
@shannah78 (on twitter)
sjhannah.com blog
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Re: Error opening pdf greater than 1 Mb

Postby tomtom8 » Sat Nov 10, 2012 1:03 am

opened editor shows this header
%PDF-1.4
%âãÏÓ
3 0 obj
<< /Type /XObject
/Subtype /Image
/Width 2472
/Height 3504
/Filter [/DCTDecode]
/ColorSpace /DeviceRGB
/BitsPerComponent 8
/Length 350593
>>
stream
ÿØÿà

secure = 1
error appears when you open the document online, and even after it has been downloaded
tomtom8
 
Posts: 17
Joined: Mon Jul 30, 2012 6:56 am

Re: Error opening pdf greater than 1 Mb

Postby shannah » Sat Nov 10, 2012 1:43 pm

Check to make sure:

1. You don't have any extra white space before or after any of your delegate classes.
e.g. before <?php or after ?>
This might be output at the beginning of the output and corrupt the PDF.

2. Make sure you don't have any files encoded with UTF8 with BOM (i.e. a byte marker at the beginning of the file), as the BOM might be included in output.

You can take a look at the resulting PDF and see if this is the case. Try
Code: Select all
$ more mypdf.pdf

(on *nix dist or mac), and see if there is any garbage or white space at the beginning of the file (or after).

-Steve
--
Steve Hannah
@shannah78 (on twitter)
sjhannah.com blog
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Re: Error opening pdf greater than 1 Mb

Postby tomtom8 » Sun Nov 11, 2012 4:17 am

I have verified that they have no extra space and I have no files encoded with UTF8 with BOM using Crimson Editor.
I excluded the file delegate classes each and every php file linked to the table always getting the error with the exception of less than 1Mb pdf.
I can still go directly online with crimson editor all the pdf files without errors, and then in fact they are not damaged or corrupted.
The error comes from other PC or other device and then rule out a browser issue.
tomtom8
 
Posts: 17
Joined: Mon Jul 30, 2012 6:56 am

[Solved] Error opening pdf greater than 1 Mb

Postby tomtom8 » Sun Nov 11, 2012 5:20 am

Ok I found the problem was determined by the antivirus Kaspersky Internet Security 2012, by entering the URL of the site in the list of trusted sites, now open all the pdf files. The mystery of why they opened only values ​​greater than 1 MB.

thanks
tomtom8
 
Posts: 17
Joined: Mon Jul 30, 2012 6:56 am


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 21 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved