Page 1 of 1

[Solved] Error opening pdf greater than 1 Mb

PostPosted: Thu Nov 08, 2012 4:58 am
by tomtom8
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

Re: Error opening pdf greater than 1 Mb

PostPosted: Thu Nov 08, 2012 8:55 am
by shannah
What PDF file are you referring to?

Re: Error opening pdf greater than 1 Mb

PostPosted: Fri Nov 09, 2012 2:00 am
by tomtom8
Type = container

allowed_extension = pdf
allowed_mimetypes = applications/pdf

Re: Error opening pdf greater than 1 Mb

PostPosted: Fri Nov 09, 2012 9:01 am
by shannah
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?.

Re: Error opening pdf greater than 1 Mb

PostPosted: Sat Nov 10, 2012 1:03 am
by tomtom8
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

Re: Error opening pdf greater than 1 Mb

PostPosted: Sat Nov 10, 2012 1:43 pm
by shannah
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

Re: Error opening pdf greater than 1 Mb

PostPosted: Sun Nov 11, 2012 4:17 am
by tomtom8
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.

[Solved] Error opening pdf greater than 1 Mb

PostPosted: Sun Nov 11, 2012 5:20 am
by tomtom8
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