Page 1 of 1

Semi Off Topic: itextSharp and PDF-version

Posted: Tue Mar 22, 2011 6:11 pm
by Peter2
Maybe you can give me an advice ..

I get a lot of PDF, made by itextSharp 4.1.6, and the problem is that there is a confusion PDF-version.

I found two entries in the PDF-File:
Line 1:

Code: Select all

%PDF-1.4
Line 4539:

Code: Select all

<</PageLayout/SinglePage/Version/1.5/Outlines 570 0 R/Pages 6 0 R/PageMode/UseOutlines/Type/Catalog/ViewerPreferences<</DisplayDocTitle true>>>>
PDF-XChange and Adobe Reader show me "Version 1.5", other software shows me "1.4". Can you tell me where is the problem: the files from iTextSharp or the results?

Peter

Re: Semi Off Topic: itextSharp and PDF-version

Posted: Wed Mar 23, 2011 11:11 am
by Lzcat - Tracker Supp
Regarding to PDF specification file version should be declared at the begining of file like %PDF-1.4 in your case. But later Adobe decided that it can be updated in document catalog (/Version/1.5 in your case). Primary concern of such update - modifting document using incremental update (in this case original file remains unchanged at the begining, all changes are stored as addition after it) and using features that are not allowed by original spec. version (for example Polygon annotation require pdf version 1.5 or higher). If this record is present - it override version specified at the begining of document, so problem is in your "other software" (and maybe in creator, if it use such version update without a reason).

Re: Semi Off Topic: itextSharp and PDF-version

Posted: Wed Mar 23, 2011 2:37 pm
by Peter2
Thanks for the info, Stephan.

Peter

Re: Semi Off Topic: itextSharp and PDF-version

Posted: Wed Mar 23, 2011 3:17 pm
by Tracker Supp-Stefan
You are welcome Peter,

but that was Victor that gave the explanation above ;)
(he is the one hiding behind the nick of LzCat )

Cheers,
Stefan

Re: Semi Off Topic: itextSharp and PDF-version

Posted: Wed Mar 23, 2011 4:43 pm
by Peter2
Oh, sorry.

Thanks, Victor.

Peter

Re: Semi Off Topic: itextSharp and PDF-version

Posted: Wed Mar 23, 2011 5:00 pm
by Paul - Tracker Supp
:)