-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
BUG: Add the TK.SIZE into the trailer #1911
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #1911 +/- ##
==========================================
- Coverage 93.83% 92.83% -1.01%
==========================================
Files 34 34
Lines 6943 7058 +115
Branches 1370 1389 +19
==========================================
+ Hits 6515 6552 +37
- Misses 282 359 +77
- Partials 146 147 +1
☔ View full report in Codecov by Sentry. |
Looks fine to me. From "Table 15 – Entries in the file trailer dictionary" of the 1.7 specs:
I wonder why this wasn't observed earlier. @pubpub-zz What do you think? |
Mod looks good. Can you just a check that the /Size is present:
|
The check is added. I hope the test I chose is OK for you. |
Thank you for the contribution! The fix is now in |
If you want, I can add you to https://pypdf.readthedocs.io/en/latest/meta/CONTRIBUTORS.html :-) |
New Features (ENH): - Add AES support for encrypting PDF files (#1918, #1935, #1936, #1938) - Add page deletion feature to PdfWriter (#1843) Bug Fixes (BUG): - PdfReader.get_fields() attempts to delete non-existing index "/Off" (#1933) - Remove unused objects when cloning_from (#1926) - Add the TK.SIZE into the trailer (#1911) - add_named_destination() maintains named destination list sort order (#1930)
Closes #1901