Pypdf

Latest version: v4.2.0

Safety actively analyzes 621854 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 13

4.2.0

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](https://github.com/py-pdf/pypdf/compare/4.1.0...4.2.0)

4.1.0

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](https://github.com/py-pdf/pypdf/compare/4.0.2...4.1.0)

4.0.2

Bug Fixes (BUG)
- Use NumberObject for /Border elements of annotations (2451)

[Full Changelog](https://github.com/py-pdf/pypdf/compare/4.0.1...4.0.2)

4.0.1

Bug Fixes (BUG)
- layout mode text extraction ZeroDivisionError (2417)

Testing (TST)
- Skip tests using fpdf2 if it's not installed (2419)

[Full Changelog](https://github.com/py-pdf/pypdf/compare/4.0.0...4.0.1)

4.0.0

Deprecations (DEP)
- Drop Python 3.6 support (2369)
- Remove deprecated code (2367)
- Remove deprecated XMP properties (2386)

New Features (ENH)
- Add "layout" mode for text extraction (2388)
- Add Jupyter Notebook integration for PdfReader (2375)
- Improve/rewrite PDF permission retrieval (2400)

Bug Fixes (BUG)
- PdfWriter.add_uri was setting the wrong type (2406)
- Add support for GBK2K cmaps (2385)

Maintenance (MAINT)
- Return None instead of -1 when page is not attached (2376)
- Complete FileSpecificationDictionaryEntries constants (2416)
- Replace warning with logging.error (2377)

[Full Changelog](https://github.com/py-pdf/pypdf/compare/3.17.4...4.0.0)

3.17.4

Bug Fixes (BUG)
- Handle IndirectObject as image filter (2355)

[Full Changelog](https://github.com/py-pdf/pypdf/compare/3.17.3...3.17.4)

Page 1 of 13

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.