Invalid PDF exported

Stimulsoft Reports.WEB discussion
Post Reply
Werlang
Posts: 26
Joined: Wed Feb 20, 2013 1:50 pm

Invalid PDF exported

Post 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?
Werlang
Posts: 26
Joined: Wed Feb 20, 2013 1:50 pm

Re: Invalid PDF exported

Post by Werlang »

We´ve found that there was a minify filter applied before returning. We removed it and then it worked.
Andrew
Posts: 4109
Joined: Fri Jun 09, 2006 3:58 am

Re: Invalid PDF exported

Post by Andrew »

Hello,

Great! Have a nice weekend!
Thank you.
Post Reply