Page 1 of 1

Invalid PDF exported

Posted: Fri Jun 07, 2013 2:53 pm
by Werlang
When exporting a report do PDF, the resulting file is invalid.

A regular PDF looks like:

Code: Select all

%PDF-1.4
%âãÏÓ
1 0 obj
<<
/Type /Catalog
/Pages 4 0 R
/MarkInfo<</Marked true>>
/Metadata 21 0 R
/OutputIntents 23 0 R
/StructTreeRoot 5 0 R
/PageMode /UseNone
Our application generates a PDF this way, everything on the same line:

Code: Select all

%PDF-1.4 %âãÏÓ 1 0 obj << /Type /Catalog /Pages 4 0 R /MarkInfo<</Marked true>> /Metadata 27 0 R /OutputIntents 29 0 R /StructTreeRoot
It seems that CR-LF is changed to a space. What should we do?

Re: Invalid PDF exported

Posted: Fri Jun 07, 2013 9:10 pm
by Werlang
We´ve found that there was a minify filter applied before returning. We removed it and then it worked.

Re: Invalid PDF exported

Posted: Sun Jun 09, 2013 4:36 am
by Andrew
Hello,

Great! Have a nice weekend!
Thank you.