Pypdf2

Latest version: v3.0.1

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

Scan your dependencies

Page 5 of 9

2.4.2

Not secure
What's Changed

New Features (ENH)
- Add PdfReader.xfa attribute (1026)

Bug Fixes (BUG)
- Wrong page inserted when PdfMerger.merge is done (1063)
- Resolve IndirectObject when it refers to a free entry (1054)

Developer Experience (DEV)
- Added {posargs} to tox.ini (1055)

Maintenance (MAINT)
- Remove PyPDF2._utils.bytes_type (1053)

Testing (TST)
- Scale page (indirect rect object) (1057)
- Simplify pathlib PdfReader test (1056)
- IndexError of VirtualList (1052)
- Invalid XML in xmp information (1051)
- No pycryptodome (1050)
- Increase test coverage (1045)

Code Style (STY)
- DOC of compress_content_streams (1061)
- Minimize diff for 879 (1049)

**Full Changelog**: https://github.com/py-pdf/PyPDF2/compare/2.4.1...2.4.2

2.4.1

Not secure
What's Changed

New Features (ENH)
- Add writer.pdf_header property (getter and setter) (1038)

Performance Improvements (PI)
- Remove b_ call in FloatObject.write_to_stream (1044)
- Check duplicate objects in writer._sweep_indirect_references (207)

Documentation (DOC)
- How to surppress exceptions/warnings/log messages (1037)
- Remove hyphen from lossless (1041)
- Compression of content streams (1040)
- Fix inconsistent variable names in add-watermark.md (1039)
- File size reduction
- Add CHANGELOG to the rendered docs (1023)

Maintenance (MAINT)
- Handle XML error when reading XmpInformation (1030)
- Deduplicate Code / add mutmut config (1022)

Code Style (STY)
- Use unnecessary one-line function / class attribute (1043)
- Docstring formatting (1033)

New Contributors
* Hatell made their first contribution in https://github.com/py-pdf/PyPDF2/pull/207
* behzadfhm made their first contribution in https://github.com/py-pdf/PyPDF2/pull/1039

**Full Changelog**: https://github.com/py-pdf/PyPDF2/compare/2.4.0...2.4.1

2.4.0

Not secure
What's Changed

Thanks to exiledkingcc PyPDF2 now also supports R6 decryption 🎉 Thank you 🤗

New Features (ENH)
- Support R6 decrypting (1015)
- Add PdfReader.pdf_header (1013)

Performance Improvements (PI)
- Remove ord_ calls (1014)

Bug Fixes (BUG)
- Fix missing page for bookmark (1016)

Robustness (ROB)
- Deal with invalid Destinations (1028)

Documentation (DOC)
- get_form_text_fields does not extract dropdown data (1029)
- Adjust PdfWriter.add_uri docstring
- Mention crypto extra_requires for installation (1017)

Developer Experience (DEV)
- Use /n line endings everywhere (1027)
- Adjust string formatting to be able to use mutmut (1020)
- Update Bug report template


**Full Changelog**: https://github.com/py-pdf/PyPDF2/compare/2.3.1...2.4.0

2.3.1

Not secure
What's Changed

Bug Fixes (BUG)

- Forgot to add the interal `_codecs` subpackage.

**Full Changelog**: https://github.com/py-pdf/PyPDF2/compare/2.3.0...2.3.1

2.3.0

Not secure
What's Changed
The highlight of this release is improved support for file encryption
(AES-128 and AES-256, R5 only). See 749 for the amazing work of
exiledkingcc 🎊 Thank you 🤗

Deprecations (DEP)
- Rename names to be PEP8-compliant (967)
- `PdfWriter.get_page`: the pageNumber parameter is renamed to page_number
- `PyPDF2.filters`:
* For all classes, a parameter rename: decodeParms âž” decode_parms
* decodeStreamData âž” decode_stream_data
- `PyPDF2.xmp`:
* XmpInformation.rdfRoot âž” XmpInformation.rdf_root
* XmpInformation.xmp_createDate âž” XmpInformation.xmp_create_date
* XmpInformation.xmp_creatorTool âž” XmpInformation.xmp_creator_tool
* XmpInformation.xmp_metadataDate âž” XmpInformation.xmp_metadata_date
* XmpInformation.xmp_modifyDate âž” XmpInformation.xmp_modify_date
* XmpInformation.xmpMetadata âž” XmpInformation.xmp_metadata
* XmpInformation.xmpmm_documentId âž” XmpInformation.xmpmm_document_id
* XmpInformation.xmpmm_instanceId âž” XmpInformation.xmpmm_instance_id
- `PyPDF2.generic`:
* readHexStringFromStream âž” read_hex_string_from_stream
* initializeFromDictionary âž” initialize_from_dictionary
* createStringObject âž” create_string_object
* TreeObject.hasChildren âž” TreeObject.has_children
* TreeObject.emptyTree âž” TreeObject.empty_tree

New Features (ENH)
- Add decrypt support for V5 and AES-128, AES-256 (R5 only) (749)

Robustness (ROB)
- Fix corrupted (wrongly) linear PDF (1008)

Maintenance (MAINT)
- Move PDF_Samples folder into ressources
- Fix typos (1007)

Testing (TST)
- Improve encryption/decryption test (1009)
- Add merger test cases with real PDFs (1006)
- Add mutmut config

Code Style (STY)
- Put pure data mappings in separate files (1005)
- Make encryption module private, apply pre-commit (1010)

New Contributors
* kianmeng made their first contribution in https://github.com/py-pdf/PyPDF2/pull/1007

**Full Changelog**: https://github.com/py-pdf/PyPDF2/compare/2.2.1...2.3.0

2.2.1

Not secure
What's Changed

Performance Improvements (PI)
- Remove b_ calls (992, 986)
- Apply improvements to _utils suggested by perflint (993)

Robustness (ROB)
- utf-16-be\' codec can\'t decode (...) (995)

Documentation (DOC)
- Remove reference to Scripts (987)

Developer Experience (DEV)
- Fix type annotations for add_bookmarks (1000)

Testing (TST)
- Add test for PdfMerger (1001)
- Add tests for XMP information (996)
- reader.get_fields / zlib issue / LZW decode issue (1004)
- reader.get_fields with report generation (1002)
- Improve test coverage by extracting texts (998)

Code Style (STY)
- Apply fixes suggested by pylint (999)


**Full Changelog**: https://github.com/py-pdf/PyPDF2/compare/2.2.0...2.2.1

Page 5 of 9

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.