Skip to content
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

chore(deps): update dependency pypdf to v5 #908

Closed

Conversation

renovate-bot
Copy link
Contributor

@renovate-bot renovate-bot commented Sep 17, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
pypdf (changelog) ==4.0.0 -> ==5.0.1 age adoption passing confidence

Release Notes

py-pdf/pypdf (pypdf)

v5.0.1

Compare Source

New Features (ENH)
  • Add full parameter to PdfWriter constructor (#​2865)
Bug Fixes (BUG)
  • Update pyproject.toml with minimum Python version of 3.8 (#​2859)
  • Cope with unbalanced delimiters in dictionary object (#​2878)
  • Cope with encoding with too many differences (#​2873)
  • Missing spaces in extract_text() method (#​1328) (#​2868)
  • Tolerate truncated files and no warning when jumping startxref (#​2855)
Robustness (ROB)
  • Repair PDF with invalid Root object (#​2880)
  • Continue parsing dictionary object when error is detected (#​2872)
  • Merge documents with invalid pages in named destinations (#​2857)
  • Tolerate comments in arrays (#​2856)
Developer Experience (DEV)
  • Use latest Python version for benchmarking (#​2879)
Maintenance (MAINT)
  • Add tests to source distributions (#​2874)
  • Refactor _update_field_annotation (#​2862)

Full Changelog

v5.0.0

Compare Source

This version drops support for Python 3.7 (not maintained since July 2023), PdfMerger (use PdfWriter instead) and AnnotationBuilder (use annotations instead).

Deprecations (DEP)
  • Remove the deprecated PfdMerger and AnnotationBuilder classes and other deprecations cleanup (#​2813)
  • Drop Python 3.7 support (#​2793)
New Features (ENH)
  • Add capability to remove /Info from PDF (#​2820)
  • Add incremental capability to PdfWriter (#​2811)
  • Add UniGB-UTF16 encodings (#​2819)
  • Accept utf strings for metadata (#​2802)
  • Report PdfReadError instead of RecursionError (#​2800)
  • Compress PDF files merging identical objects (#​2795)
Bug Fixes (BUG)
Robustness (ROB)
  • Robustify .set_data() (#​2821)
  • Raise PdfReadError when missing /Root in trailer (#​2808)
  • Fix extract_text() issues on damaged PDFs (#​2760)
  • Handle images with empty data when processing an image from bytes (#​2786)
Developer Experience (DEV)

Full Changelog

v4.3.1

Compare Source

Bug Fixes (BUG)
  • Cope with Matrix entry in field annotations (#​2736)
Robustness (ROB)
  • Cope with fields with upside down box/rectangle (#​2729)
Maintenance (MAINT)
  • Add deprecate_with_replacement to StreamObject.initializeFromD… (#​2728)
  • Deal with cryptography>=43 moving ARC4 (#​2765)

Full Changelog

v4.3.0

Compare Source

New Features (ENH)
  • Accept ETen-B5 and UniCNS-UTF16 encodings (#​2721)
  • Add decode_as_image() to ContentStreams (#​2615)
  • context manager for PdfReader (#​2666)
  • Add capability to set font and size in fields (#​2636)
  • Allow to pass input file without named argument (#​2576)
Bug Fixes (BUG)
  • Fix deprecation for Ressources when using old constants (#​2705)
  • Fix images issue 4 bits encoding and LUT starting with UTF16_BOM (#​2675)
  • Reading large compressed images takes huge time to process (#​2644)
  • Highlighted Text Cannot Be Printed (#​2604)
  • Fix UnboundLocalError on malformed pdf (#​2619)
Robustness (ROB)
  • Cope with missing Standard 14 fonts in fields (#​2677)
  • Improve inline image extraction (#​2622)
  • Cope with loops in Fields tree (#​2656)
  • Discard /I in choice fields for compatibility with Acrobat (#​2614)
  • Cope with some issues in pillow (#​2595)
  • Cope with some image extraction issues (#​2591)
Documentation (DOC)
  • Various improvements on docstrings and examples
Maintenance (MAINT)
  • Deprecate interiour_color with replacement interior_color (#​2706)
  • Add deprecate_with_replacement to PdfWriter.find_bookmark (#​2674)
Code Style (STY)
  • Change Link to be a non-markup annotation (#​2714)

Full Changelog

v4.2.0

Compare Source

New Features (ENH)
  • Allow multiple charsets for NameObject.read_from_stream (#​2585)
  • Add support for /Kids in page labels (#​2562)
  • Allow to update fields on many pages (#​2571)
  • Tolerate PDF with invalid xref pointed objects (#​2335)
  • Add Enforce from PDF2.0 in viewer_preferences (#​2511)
  • Add += and -= operators to ArrayObject (#​2510)
Bug Fixes (BUG)
  • Fix merge_page sometimes generating unknown operator 'QQ' (#​2588)
  • Fix fields update where annotations are kids of field (#​2570)
  • Process CMYK images without a filter correctly (#​2557)
  • Extract text in layout mode without finding resources (#​2555)
  • Prevent recursive loop in some PDF files (#​2505)
Robustness (ROB)
  • Tolerate "truncated" xref (#​2580)
  • Replace error by warning for EOD in RunLengthDecode/ASCIIHexDecode (#​2334)
  • Rebuild xref table if one entry is invalid (#​2528)
  • Robustify stream extraction (#​2526)
Documentation (DOC)
  • Update release process for latest changes (#​2564)
  • Encryption/decryption: Clone document instead of copying all pages (#​2546)
  • Minor improvements (#​2542)
  • Update annotation list (#​2534)
  • Update references and formatting (#​2529)
  • Correct threads reference, plus minor changes (#​2521)
  • Minor readability increases (#​2515)
  • Simplify PaperSize examples (#​2504)
  • Minor improvements (#​2501)
Developer Experience (DEV)
  • Remove unused dependencies (#​2572)
  • Remove page labels PR link from message (#​2561)
  • Fix changelog generator regarding whitespace and handling of "Other" group (#​2492)
  • Add REL to known PR prefixes (#​2554)
  • Release using the REL commit instead of git tag (#​2500)
  • Unify code between PdfReader and PdfWriter (#​2497)
  • Bump softprops/action-gh-release from 1 to 2 (#​2514)
Maintenance (MAINT)
  • Ressources → Resources (and internal name childs) (#​2550)
  • Fix typos found by codespell (#​2549)
  • Update Read the Docs configuration (#​2538)
  • Add root_object, _info and _ID to PdfReader (#​2495)
Testing (TST)
  • Allow loading truncated images if required (#​2586)
  • Fix download issues from #​2562 (#​2578)
  • Improve test_get_contents_from_nullobject to show real use-case (#​2524)
  • Add missing test annotations (#​2507)

Full Changelog

v4.1.0

Compare Source

Generating name objects (NameObject) without a leading slash
is considered deprecated now. Previously, just a plain warning
would be logged, leading to possibly invalid PDF files. According
to our deprecation policy, this will log a DeprecationWarning
for now.

New Features (ENH)
  • Add get_pages_from_field (#​2494)
  • Add reattach_fields function (#​2480)
  • Automatic access to pointed object for IndirectObject (#​2464)
Bug Fixes (BUG)
  • Missing error on name without leading / (#​2387)
  • encode_pdfdocencoding() always returns bytes (#​2440)
  • BI in text content identified as image tag (#​2459)
Robustness (ROB)
  • Missing basefont entry in type 3 font (#​2469)
Documentation (DOC)
  • Improve lossless compression example (#​2488)
  • Amend robustness documentation (#​2479)
Developer Experience (DEV)
  • Fix changelog for UTF-8 characters (#​2462)
Maintenance (MAINT)
  • Add _get_page_number_from_indirect in writer (#​2493)
  • Remove user assignment for feature requests (#​2483)
  • Remove reference to old 2.0.0 branch (#​2482)
Testing (TST)
  • Fix benchmark failures (#​2481)
  • Broken test due to expired test file URL (#​2468)
  • Resolve file naming conflict in test_iss1767 (#​2445)

Full Changelog

v4.0.2

Compare Source

Bug Fixes (BUG)
  • Use NumberObject for /Border elements of annotations (#​2451)

Full Changelog

v4.0.1

Compare Source

Bug Fixes (BUG)
  • layout mode text extraction ZeroDivisionError (#​2417)
Testing (TST)
  • Skip tests using fpdf2 if it's not installed (#​2419)

Full Changelog


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate-bot renovate-bot requested review from yoshi-approver and a team as code owners September 17, 2024 18:17
@forking-renovate forking-renovate bot added the automerge Summon MOG for automerging label Sep 17, 2024
@gcf-merge-on-green gcf-merge-on-green bot removed the automerge Summon MOG for automerging label Sep 18, 2024
Copy link

Renovate Ignore Notification

Because you closed this PR without merging, Renovate will ignore this update. You will not get PRs for any future 5.x releases. But if you manually upgrade to 5.x then Renovate will re-enable minor and patch updates automatically.

If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.

@renovate-bot renovate-bot deleted the renovate/pypdf-5.x branch October 3, 2024 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants