-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Extract correct PDF format version from the catalog #6046
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Could you squash the commits into one commit (see https://github.com/mozilla/pdf.js/wiki/Squashing-Commits)? |
The 'Version' field of the most recent document catalog, if present, is intended to supersede the value in the file prologue. This is significant for incrementally-built PDF documents and generators that emit a low version in the prologue and later apply a format version based on PDF features used, such as Apple's CoreGraphics/Quartz PDF backend. Fixes the internal version variable, as well as the PDFFormatVersion reported by the API and consumed by viewers.
Fix and test case are now squashed into one commit and rebased. |
/botio test |
From: Bot.io (Linux)ReceivedCommand cmd_test from @yurydelendik received. Current queue size: 0 Live output at: http://107.21.233.14:8877/80c0d6e0142718f/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_test from @yurydelendik received. Current queue size: 0 Live output at: http://107.22.172.223:8877/b8e2152c48919f8/output.txt |
From: Bot.io (Linux)SuccessFull output at http://107.21.233.14:8877/80c0d6e0142718f/output.txt Total script time: 17.92 mins
|
From: Bot.io (Windows)SuccessFull output at http://107.22.172.223:8877/b8e2152c48919f8/output.txt Total script time: 18.19 mins
|
Extract correct PDF format version from the catalog
Thank you for the patch. |
The 'Version' field of the most recent document catalog, if present, is
intended to supersede the value in the file prologue.
This is significant for incrementally-built PDF documents and generators that
emit a low version in the prologue and later apply a format version based on
PDF features used, such as Apple's CoreGraphics/Quartz PDF backend.
Fixes the internal version variable, as well as the PDFFormatVersion reported
by the API and consumed by viewers.