Optimize document - upgrade version from 1.3 to 1.4 - Catalog Version entry remains /1.3  SOLVED

PDF-XChange Editor SDK for Developers

Moderators: TrackerSupp-Daniel, Tracker Support, Paul - Tracker Supp, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan

Forum rules
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.

When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
Post Reply
zarkogajic
User
Posts: 1370
Joined: Thu Sep 05, 2019 12:35 pm

Optimize document - upgrade version from 1.3 to 1.4 - Catalog Version entry remains /1.3

Post by zarkogajic »

Hi Support,

This might go to EU Editor forum, but since this is more related to internal coding and PDF structure I'll ask the question here...

I have a 1.3 PDF document and need to "upgrade" it to (at least) 1.4.

I'm using "Save As Optimized" and selecting "Make Compatible With: Version 1.4 (Acrobat 5.0 and later)" + all other settings as default.

The original document has "%PDF-1.3" in File Header and "/1.3" in Trailer / Root / Doc Catalog / Version entry.

The resulting optimized PDF has "%PDF-1.4" in File Header but still "/1.3" in Trailer / Root / Doc Catalog / Version entry.

Any reason for this? Why not update the Catalog's Version entry also?

The document has only one trailer - so no incremental updates.

-žarko
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Optimize document - upgrade version from 1.3 to 1.4 - Catalog Version entry remains /1.3

Post by Sasha - Tracker Dev Team »

Hello zarkogajic,

If we look in the PDF Specification, we can see this:
Version
(Optional; PDF 1.4) The version of the PDF specification to which the
document conforms (for example, 1.4) if later than the version
specified in the file’s header (see 7.5.2, "File header"). If the header
specifies a later version, or if this entry is absent, the document shall
conform to the version specified in the header. This entry enables a
PDF processor to update the version using an incremental update;
see 7.5.6, "Incremental updates".
Meaning that what is written in the catalog is simply being ignored - the greater value is taken.

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
zarkogajic
User
Posts: 1370
Joined: Thu Sep 05, 2019 12:35 pm

Re: Optimize document - upgrade version from 1.3 to 1.4 - Catalog Version entry remains /1.3

Post by zarkogajic »

Hi Alex,

Thanks. I actually wanted to also add that quote to my post :)

To rephrase the question: why left "/1.3" in Catalog?

-žarko
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Optimize document - upgrade version from 1.3 to 1.4 - Catalog Version entry remains /1.3

Post by Sasha - Tracker Dev Team »

Hello zarkogajic,

Because the Specification allows this - that's all I can say.

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
zarkogajic
User
Posts: 1370
Joined: Thu Sep 05, 2019 12:35 pm

Re: Optimize document - upgrade version from 1.3 to 1.4 - Catalog Version entry remains /1.3  SOLVED

Post by zarkogajic »

Hi Alex,

Fair enough :)

Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Optimize document - upgrade version from 1.3 to 1.4 - Catalog Version entry remains /1.3

Post by Sasha - Tracker Dev Team »

:)
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Post Reply