Recent Releases of pypdf

pypdf - Version 6.0.0, 2025-08-11

What's new

Security (SEC)

  • Limit decompressed size for FlateDecode filter (#3430) by @stefan6419846

Deprecations (DEP)

  • Drop Python 3.8 support (#3412) by @stefan6419846

New Features (ENH)

  • Move BlackIs1 functionality to tiff_header (#3421) by @j-t-1

Robustness (ROB)

  • Skip Go-To actions without a destination (#3420) by @badGarnet

Developer Experience (DEV)

  • Update code style related libraries (#3414) by @stefan6419846
  • Update mypy to 1.17.0 (#3413) by @stefan6419846
  • Stop testing on Python 3.8 and start testing on Python 3.14 (#3411) by @stefan6419846

Maintenance (MAINT)

  • Cleanup deprecations (#3424) by @stefan6419846

Full Changelog

- Python
Published by github-actions[bot] 6 months ago

pypdf - Version 5.9.0, 2025-07-27

What's new

New Features (ENH)

  • Automatically preserve links in added pages (#3298) by @larsga
  • Allow writing/updating all properties of an embedded file (#3374) by @Arya-A-Nair

Bug Fixes (BUG)

  • Fix XMP handling dropping indirect references (#3392) by @stefan6419846

Robustness (ROB)

  • Deal with DecodeParms being empty list (#3388) by @stefan6419846

Documentation (DOC)

  • Document how to read and modify XMP metadata (#3383) by @stefan6419846

Full Changelog

- Python
Published by github-actions[bot] 7 months ago

pypdf - Version 5.8.0, 2025-07-13

What's new

New Features (ENH)

  • Implement flattening for writer (#3312) by @PJBrs

Bug Fixes (BUG)

  • Unterminated object when using PdfWriter with incremental=True (#3345) by @m32

Robustness (ROB)

  • Resolve some image extraction edge cases (#3371) by @stefan6419846
  • Ignore faulty trailing newline during RLE decoding (#3355) by @henningkoertelgmg
  • Gracefully handle odd-length strings in parse_bfchar (#3348) by @stefan6419846

Developer Experience (DEV)

  • Modernize license specifiers (#3338) by @stefan6419846

Maintenance (MAINT)

  • Reduce max-complexity of tool.ruff.lint.mccabe (#3365) by @j-t-1
  • Refactor text extraction code by @MartinThoma

Full Changelog

- Python
Published by github-actions[bot] 7 months ago

pypdf - Version 5.7.0, 2025-06-29

What's new

Performance Improvements (PI)

  • Performance optimization for LZW decoding (#3329) by @henningkoertelgmg

Robustness (ROB)

  • Flate decoding for streams with faulty tail bytes (#3332) by @henningkoertelgmg
  • dc_creator could be a Bag as well (#3333) by @stefan6419846
  • Handle tree being NullObject when retrieving named destinations (#3331) by @stefan6419846

Maintenance (MAINT)

  • Move inline-image mappings to constants (#3328) by @stefan6419846

Full Changelog

- Python
Published by github-actions[bot] 8 months ago

pypdf - Version 5.6.1, 2025-06-22

What's new

New Features (ENH)

  • Add PDF/A XMP metadata support (#3314) by @Arya-A-Nair

Robustness (ROB)

  • Deal with annotations not being lists on merge (#3321) by @stefan6419846
  • Handle NullObject for cmap encoding Differences entry (#3317) by @stefan6419846

Developer Experience (DEV)

  • Update ruff to 0.12.0 (#3316) by @stefan6419846

Full Changelog

- Python
Published by github-actions[bot] 8 months ago

pypdf - Version 5.6.0, 2025-06-01

What's new

New Features (ENH)

  • Add basic support for JBIG2 by using jbig2dec (#3163) by @stefan6419846

Bug Fixes (BUG)

  • Fix crashes by removing unnecessary line (#3293) by @larsga
  • Add delimiters to NameObject.renumber_table (#3286) by @ztravis

Robustness (ROB)

  • Handle DecodeParms being a NullObject (#3285) by @stefan6419846

Code Style (STY)

  • Update to mypy 1.16.0 (#3300) by @stefan6419846

Full Changelog

- Python
Published by github-actions[bot] 9 months ago

pypdf - Version 5.5.0, 2025-05-11

What's new

New Features (ENH)

  • Add support for IndirectObject.iter (#3228) by @bryan-brancotte
  • Allow filtering by font when removing text (#3216) by @samuelbradshaw

Bug Fixes (BUG)

  • Add missing named destinations being ByteStringObjects (#3282) by @stefan6419846
  • Get font information more reliably when removing text (#3252) by @samuelbradshaw
  • T* 2D Translation consistent with PDF 1.7 Spec (#3250) by @hackowitz-af
  • Add font stack to q/Q operations in layout mode (#3225) by @hackowitz-af
  • Avoid completely hiding image loading issues like exceeding image size limits (#3221) by @stefan6419846
  • Using compressidenticalobjects on transformed content duplicates differing content (#3197) by @danio
  • Consider BlackIs1 parameter for CCITTFaxDecode filter (#3196) by @stefan6419846

Robustness (ROB)

  • Deal with insufficient cm matrix during text extraction (#3283) by @stefan6419846
  • Allow merging when annotations miss D entry (#3281) by @stefan6419846
  • Fix merging documents if there are no Dests (#3280) by @stefan6419846
  • Fix crash on malformed action in outline (#3278) by @larsga
  • Fix compression issues for removed images which might be None (#3246) by @stefan6419846
  • Attempt to deal with non-rectangular FlateDecode streams (#3245) by @stefan6419846
  • Handle some None values for broken PDF files (#3230) by @stefan6419846

Developer Experience (DEV)

  • Multiple style improvements by @j-t-1
  • Update ruff to 0.11.0 by @stefan6419846

Maintenance (MAINT)

  • Conform ASCIIHexDecode implementation to specification (#3274) by @j-t-1
  • Modify comments of filters that do not use decode_parms (#3260) by @j-t-1

Code Style (STY)

  • Simplify warnings & debugging in layout mode text extraction (#3271) by @hackowitz-af
  • Standardize mypy assert statements (#3276) by @j-t-1

Full Changelog

- Python
Published by github-actions[bot] 10 months ago

pypdf - Version 5.4.0, 2025-03-16

What's new

New Features (ENH)

  • Add support for IndirectObject.__contains__ (#3155) by @noamkush

Bug Fixes (BUG)

  • Fix detection of inline images followed by names or numbers (#3173) by @stefan6419846

Robustness (ROB)

  • Consider root objects without catalog type as fallback (#3175) by @stefan6419846
  • Raise proper error on infinite loop when reading objects (#3169) by @stefan6419846

Documentation (DOC)

  • Mention memory consumption of text extraction (#3168) by @stefan6419846

Developer Experience (DEV)

  • Upgrade to ruff 0.10.0 (#3191) by @stefan6419846

Full Changelog

- Python
Published by github-actions[bot] 11 months ago

pypdf - Version 5.3.1, 2025-03-02

What's new

Bug Fixes (BUG)

  • Use the correct name StandardEncoding for the predefined cmap (#3156) by @stefan6419846
  • Handle inline images containing EI sequences (#3152) by @stefan6419846
  • Fix check box value which should be name object (#3124) by @stefan6419846
  • Fix stream position on inline image fallback extraction (#3120) by @stefan6419846
  • Fix object count for incremental writer (#3117) by @m32

Robustness (ROB)

  • Avoid index errors on empty lines in xref table (#3162) by @stefan6419846
  • Improve handling of LZW decoder table overflow (#3159) by @stefan6419846
  • Ignore non-numbers for width when building font width map (#3158) by @stefan6419846
  • Avoid negative seek values when reading partially broken files (#3157) by @stefan6419846

Documentation (DOC)

  • Fixed PageObject.images example usage for replacing image (#3149) by @jutoth

Full Changelog

- Python
Published by github-actions[bot] 12 months ago

pypdf - Version 5.3.0, 2025-02-09

What's new

New Features (ENH)

  • Handle attachments in /Kids and provide object-oriented API (#3108) by @stefan6419846

Bug Fixes (BUG)

  • Handle annotations being None on merging (#3111) by @stefan6419846

Robustness (ROB)

  • Prevent excessive layout mode text output from Type3 fonts (#3082) by @shartzog

Documentation (DOC)

  • stefan6419846 becomes BDFL of pypdf (#3078) by @MartinThoma

Developer Experience (DEV)

  • Remove ignoring multiple Ruff rules by @j-t-1
  • Remove unused mutmut configuration (#3092) by @stefan6419846

Testing (TST)

  • Fix warning assertions to use pytest.warns() (#3083) by @mgorny

Full Changelog

- Python
Published by github-actions[bot] about 1 year ago

pypdf - Version 5.2.0, 2025-01-26

What's new

Deprecations (DEP)

  • Deprecate with replacement CCITParameters (#3019) by @j-t-1
  • Correct deprecation of interiour_color (#2947) by @j-t-1

New Features (ENH)

  • Support alternative (U)F names for embedded file retrieval (#3072) by @stefan6419846
  • Adding support for reading .metadata.keywords (#2939) by @Lucas-C

Bug Fixes (BUG)

  • Handle further Tf operators in text extraction layout mode (#3073) by @blushingpenguin
  • Ensure add_metadata can deal with _info = None (#3040) by @xmo-odoo
  • Handle IndirectObject in CCITTFaxDecode filter (#2965) by @stefan6419846
  • Handle chained colorspace for inline images when no filter is set (#3008) by @stefan6419846
  • Avoid extracting inline images twice and dropping other operators (#3002) by @stefan6419846
  • Fixed reference of value with str.__new__ in TextStringObject (#2952) by @thomas-forte
  • Handle indirect objects in font width calculations (#2967) by @nsw42
  • Title sometimes is bytes and not str (#2930) by @reformy
  • Fix undefined variable for text extraction (regression) (#2934) by @stefan6419846
  • Don't close stream passed to PdfWriter.write() (#2909) by @alexaryn

Robustness (ROB)

  • Handle zero height fonts when extracting text (#3075) by @blushingpenguin
  • Deal with content streams not containing streams (#3005) by @stefan6419846
  • Gracefully handle some text operators when the operands are missing (#3006) by @stefan6419846
  • Fall back to non-Adobe Ascii85 format for missing end markers (#3007) by @stefan6419846
  • Ignore odd-length strings when processing cmap lines (#3009) by @stefan6419846
  • Skip annotation destination being NullObject in PdfWriter (#2964) by @stefan6419846
  • Skip destination page being None in PdfWriter (#2963) by @dxsooo
  • Fix infinite loop case when reading null objects within an Array by @jakep-allenai
  • Fixing infinite loop in ArrayObject readfromstream (#2928) by @jakep-allenai

Documentation (DOC)

  • Add note about default line colors (#3014) by @stefan6419846

Developer Experience (DEV)

  • Remove ignoring Ruff rule PGH004 (#3071) by @j-t-1
  • Tidy ignore array in tool.ruff.lint (#3069) by @j-t-1
  • Move Windows CI to Python 3.13 (#3003) by @stefan6419846
  • Move to Ubuntu 22.04 (#3004) by @stefan6419846

Maintenance (MAINT)

  • Fix formatting of warning message and include exception message (#3076) by @stefan6419846
  • Narrow return type for ContentStream.operations (#2941) by @kmurphy4

Testing (TST)

  • Fix image similarity for upcoming Ubuntu 24.04 (#3039) by @stefan6419846
  • Replace broken Apache Tika Corpora urls (#3041) by @stefan6419846

Code Style (STY)

  • Add form feed to WHITESPACES (#3054) by @j-t-1
  • Lots of small internal changes by @j-t-1

Full Changelog

- Python
Published by github-actions[bot] about 1 year ago

pypdf - Version 5.1.0, 2024-10-27

What's new

New Features (ENH)

  • Add layout_mode_font_height_weight argument to PageObject.extract_text() (#2920) by @hpierre001

Bug Fixes (BUG)

  • Fix font specificier for FreeText annotation (#2893) by @ssjkamei
  • Line breaks are not generated due to incorrect calculation of text leading (#2890) by @ssjkamei
  • Improve handling of spaces in text extraction (#2882) by @ssjkamei

Robustness (ROB)

  • Soft failure for flate encode image mode 1 with wrong LUT size (#2900) by @stefan6419846

Documentation (DOC)

  • Use latest package versions (#2907) by @stefan6419846
  • Correct example of reading FileAttachment annotation (#2906) by @j-t-1

Developer Experience (DEV)

  • Update pinned requirements (#2918) by @stefan6419846
  • Make make_release.py compatible with Windows environment (#2894) by @pubpub-zz

Maintenance (MAINT)

  • Remove references to outdated Python versions (#2919) by @stefan6419846
  • Generalize the method of obtaining space_code (#2891) by @ssjkamei
  • Unnecessary character mapping process (#2888) by @ssjkamei
  • New LZW decoding implementation (#2887) by @MartinThoma

Testing (TST)

  • Add LzwCodec for encoding (#2883) by @MartinThoma

Code Style (STY)

  • Capitalize error messages (#2903) by @j-t-1
  • Modify error messages in PdfWriter (#2902) by @j-t-1

Full Changelog

- Python
Published by github-actions[bot] over 1 year ago

pypdf - Version 5.0.1, 2024-09-29

Version 5.0.1, 2024-09-29

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 updatefield_annotation (#2862)

Full Changelog

- Python
Published by pubpub-zz over 1 year ago

pypdf - Version 5.0.0, 2024-09-17

Version 5.0.0, 2024-09-17

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)

  • Fix sheared image (#2801)

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)

  • Fix coverage uploads (#2832)
  • Test against Python 3.13 (#2776)

Full Changelog

- Python
Published by pubpub-zz over 1 year ago

pypdf - Version 4.3.1, 2024-07-21

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 deprecatewithreplacement to StreamObject.initializeFromD… (#2728)
  • Deal with cryptography>=43 moving ARC4 (#2765)

Full Changelog

- Python
Published by github-actions[bot] over 1 year ago

pypdf - Version 4.3.0, 2024-07-14

What's new

New Features (ENH)

  • Accept ETen-B5 and UniCNS-UTF16 encodings (#2721) by @pubpub-zz
  • Add decodeasimage() to ContentStreams (#2615) by @pubpub-zz
  • context manager for PdfReader (#2666) by @tibor-reiss
  • Add capability to set font and size in fields (#2636) by @pubpub-zz
  • Allow to pass input file without named argument (#2576) by @pubpub-zz

Bug Fixes (BUG)

  • Fix deprecation for Ressources when using old constants (#2705) by @stefan6419846
  • Fix images issue 4 bits encoding and LUT starting with UTF16_BOM (#2675) by @pubpub-zz
  • Reading large compressed images takes huge time to process (#2644) by @snanda85
  • Highlighted Text Cannot Be Printed (#2604) by @Nifury
  • Fix UnboundLocalError on malformed pdf (#2619) by @farjasju

Documentation (DOC)

  • Various improvements on docstrings and examples by @j-t-1

Robustness (ROB)

  • Cope with missing Standard 14 fonts in fields (#2677) by @pubpub-zz
  • Improve inline image extraction (#2622) by @pubpub-zz
  • Cope with loops in Fields tree (#2656) by @pubpub-zz
  • Discard /I in choice fields for compatibility with Acrobat (#2614) by @pubpub-zz
  • Cope with some issues in pillow (#2595) by @pubpub-zz
  • Cope with some image extraction issues (#2591) by @pubpub-zz

Maintenance (MAINT)

  • Deprecate interiourcolor with replacement interiorcolor (#2706) by @j-t-1
  • Add deprecatewithreplacement to PdfWriter.find_bookmark (#2674) by @j-t-1

Code Style (STY)

  • Change Link to be a non-markup annotation (#2714) by @j-t-1

Full Changelog

- Python
Published by github-actions[bot] over 1 year ago

pypdf - Version 4.2.0, 2024-04-07

What's new

New Features (ENH)

  • Allow multiple charsets for NameObject.readfromstream (#2585) by @pubpub-zz
  • Add support for /Kids in page labels (#2562) by @stefan6419846
  • Allow to update fields on many pages (#2571) by @pubpub-zz
  • Tolerate PDF with invalid xref pointed objects (#2335) by @pubpub-zz
  • Add Enforce from PDF2.0 in viewer_preferences (#2511) by @pubpub-zz
  • Add += and -= operators to ArrayObject (#2510) by @pubpub-zz

Bug Fixes (BUG)

  • Fix merge_page sometimes generating unknown operator 'QQ' (#2588) by @rfotino
  • Fix fields update where annotations are kids of field (#2570) by @pubpub-zz
  • Process CMYK images without a filter correctly (#2557) by @pubpub-zz
  • Extract text in layout mode without finding resources (#2555) by @pubpub-zz
  • Prevent recursive loop in some PDF files (#2505) by @pubpub-zz

Robustness (ROB)

  • Tolerate "truncated" xref (#2580) by @pubpub-zz
  • Replace error by warning for EOD in RunLengthDecode/ASCIIHexDecode (#2334) by @pubpub-zz
  • Rebuild xref table if one entry is invalid (#2528) by @pubpub-zz
  • Robustify stream extraction (#2526) by @pubpub-zz

Documentation (DOC)

  • Update release process for latest changes (#2564) by @stefan6419846
  • Encryption/decryption: Clone document instead of copying all pages (#2546) by @redfast00
  • Minor improvements (#2542) by @j-t-1
  • Update annotation list (#2534) by @j-t-1
  • Update references and formatting (#2529) by @j-t-1
  • Correct threads reference, plus minor changes (#2521) by @j-t-1
  • Minor readability increases (#2515) by @j-t-1
  • Simplify PaperSize examples (#2504) by @j-t-1
  • Minor improvements (#2501) by @j-t-1

Developer Experience (DEV)

  • Remove unused dependencies (#2572) by @stefan6419846
  • Remove page labels PR link from message (#2561) by @stefan6419846
  • Fix changelog generator regarding whitespace and handling of "Other" group (#2492) by @stefan6419846
  • Add REL to known PR prefixes (#2554) by @stefan6419846
  • Release using the REL commit instead of git tag (#2500) by @MartinThoma
  • Unify code between PdfReader and PdfWriter (#2497) by @pubpub-zz
  • Bump softprops/action-gh-release from 1 to 2 (#2514) by @dependabot[bot]

Maintenance (MAINT)

  • Ressources β†’ Resources (and internal name childs) (#2550) by @pubpub-zz
  • Fix typos found by codespell (#2549) by @stefan6419846
  • Update Read the Docs configuration (#2538) by @j-t-1
  • Add root_object, _info and _ID to PdfReader (#2495) by @pubpub-zz

Testing (TST)

  • Allow loading truncated images if required (#2586) by @stefan6419846
  • Fix download issues from #2562 (#2578) by @pubpub-zz
  • Improve testgetcontentsfromnullobject to show real use-case (#2524) by @stefan6419846
  • Add missing test annotations (#2507) by @stefan6419846

Full Changelog

- Python
Published by stefan6419846 almost 2 years ago

pypdf - Version 4.1.0, 2024-03-03

What's new

New Features (ENH)

  • Add getpagesfrom_field (#2494) by @pubpub-zz
  • Add reattach_fields function (#2480) by @pubpub-zz
  • Automatic access to pointed object for IndirectObject (#2464) by @pubpub-zz

Bug Fixes (BUG)

  • missing error on name without leading / (#2387) by @Rak424
  • encode_pdfdocencoding() always returns bytes (#2440) by @sbourlon
  • BI in text content identified as image tag (#2459) by @pubpub-zz

Robustness (ROB)

  • Missing basefont entry in type 3 font (#2469) by @pubpub-zz

Documentation (DOC)

  • Amend robustness documentation (#2479) by @j-t-1

Developer Experience (DEV)

  • Fix changelog for UTF-8 characters (#2462) by @stefan6419846

Maintenance (MAINT)

  • Add getpagenumberfrom_indirect in writer (#2493) by @pubpub-zz
  • Remove user assignment for feature requests (#2483) by @stefan6419846
  • Remove reference to old 2.0.0 branch (#2482) by @stefan6419846

Testing (TST)

  • Fix benchmark failures (#2481) by @stefan6419846
  • Resolve file naming conflict in test_iss1767 (#2445) by @sbourlon

Full Changelog

- Python
Published by github-actions[bot] almost 2 years ago

pypdf - Version 4.0.2, 2024-02-18

What's new

Bug Fixes (BUG)

  • Use NumberObject for /Border elements of annotations (#2451) by @rsinger417

Documentation (DOC)

  • Document easier way to update metadata (#2454) by @stefan6419846
  • Typo Polyline \xe2\x86\x92 PolyLine in adding-pdf-annotations.md (#2426) by @CWKSC

Developer Experience (DEV)

  • Bump codecov/codecov-action from 3 to 4 (#2430) by @dependabot[bot]

Testing (TST)

  • Avoid catching not emitted warnings (#2429) by @stefan6419846

Full Changelog

- Python
Published by github-actions[bot] about 2 years ago

pypdf - Version 4.0.1, 2024-01-28

What's new

Bug Fixes (BUG)

  • layout mode text extraction ZeroDivisionError (#2417) by @shartzog

Testing (TST)

  • Skip tests using fpdf2 if it\'s not installed (#2419) by @MartinThoma

Full Changelog

- Python
Published by github-actions[bot] about 2 years ago

pypdf - Version 4.0.0, 2024-01-19

What's new

pypdf==4.0.0 is a big milestone forward:

  • We finally have a layout-mode text extraction. This enables users who want to detect / extract tables with heuristics to give it a try.
  • We deprecated a lot of the old PyPDF2 API that was either not following PEP8 naming styles or was not using a property. Users comming from PyPDF2 might want to switch first to pypdf<4.0.0 to get helpful error messages that show the new API in their speicific cases.

A big 'Thank you!' the the whole pypdf community for your work. Thanks to you, pypdf is better than ever.

Kudos to @shartzog who added the layout-mode with his first contribution!

Deprecations (DEP)

  • Drop Python 3.6 support (#2369) by @MartinThoma
  • Remove deprecated code (#2367) by @MartinThoma
  • Remove deprecated XMP properties (#2386) by @stefan6419846

New Features (ENH)

  • Add "layout" mode for text extraction (#2388) by @shartzog
  • Add Jupyter Notebook integration for PdfReader (#2375) by @MartinThoma
  • Improve/rewrite PDF permission retrieval (#2400) by @stefan6419846

Bug Fixes (BUG)

  • PdfWriter.add_uri was setting the wrong type (#2406) by @pmiller66
  • Add support for GBK2K cmaps (#2385) by @stefan6419846

Documentation (DOC)

  • Add pmiller66 for #2406 as a contributor by @MartinThoma
  • Add missing expand parameter (#2393) by @Atomnp
  • Resolve build warnings (#2380) by @stefan6419846
  • Fix testing prerequisites (#2381) by @stefan6419846
  • Improve formatting of contributors page (#2383) by @stefan6419846
  • Add Tobeabellwether as a contributor for #2341 by @MartinThoma

Developer Experience (DEV)

  • Make dependabot aware of our PR prefixes (#2415) by @stefan6419846
  • Fail on Sphinx issues (#2405) by @stefan6419846
  • Move title check to own workflow (#2384) by @MasterOdin
  • Write to temporary files instead of the working directory (#2379) by @stefan6419846
  • Ensure that the PR titles have the correct format (#2378) by @stefan6419846

Maintenance (MAINT)

  • Return None instead of -1 when page is not attached (#2376) by @MartinThoma
  • Complete FileSpecificationDictionaryEntries constants (#2416) by @MartinThoma
  • Replace warning with logging.error (#2377) by @MartinThoma

Testing (TST)

  • Add missing pytest.mark.samples annotations (#2412) by @kitterma
  • Correctly close temporary files (#2396) by @stefan6419846
  • Fix side effect #2379 (#2395) by @pubpub-zz
  • Add test for layout extraction mode (#2390) by @MartinThoma

Code Style (STY)

  • Use the UserAccessPermissions enum (#2398) by @MartinThoma
  • Run black (#2370) by @MartinThoma

Full Changelog

- Python
Published by github-actions[bot] about 2 years ago

pypdf - Version 3.17.4, 2023-12-24

What's new

Bug Fixes (BUG)

  • Handle IndirectObject as image filter (#2355) by @stefan6419846

Documentation (DOC)

  • Quote specs in generatefileidentifiers (#2363) by @exiledkingcc
  • Notes about form fields and annotations (#1945) by @dmjohnsson23
  • Notes about updatepageformfieldvalues(auto_regenerate) (#2359) by @dmjohnsson23
  • Fix stamping example (#2358) by @dmjohnsson23
  • Stamp images directly on a PDF (#2357) by @dmjohnsson23
  • Correct the example of adding highlight annotation (#2341) by @Tobeabellwether

Maintenance (MAINT)

  • Update upload-artifact and download-artifact actions from v3 to v4 (#2352) by @stefan6419846

Testing (TST)

  • Add xfail test for #2336 (#2365) by @MartinThoma
  • Increase test coverage for flate handling of image mode 1 (#2339) by @stefan6419846

Code Style (STY)

  • File identifier generation restructuring (#2362) by @exiledkingcc
  • Add PdfWriter._ID attribute (#2361) by @exiledkingcc
  • Variable naming convention (#2360) by @MartinThoma

Full Changelog

- Python
Published by github-actions[bot] about 2 years ago

pypdf - Version 3.17.3, 2023-12-17

What's new

Robustness (ROB)

  • Out-of-bounds issue in handle_tj (text extraction) (#2342) by @rgwood-rely

Developer Experience (DEV)

  • Make make_release.py easier to configure (#2348) by @MartinThoma

Maintenance (MAINT)

  • Bump actions/download-artifact from 3 to 4 (#2344) by @dependabot[bot]

Full Changelog

- Python
Published by github-actions[bot] about 2 years ago

pypdf - Version 3.17.2, 2023-12-10

What's new

Bug Fixes (BUG)

  • Cope with deflated images with CMYK Black Only (#2322) by @pubpub-zz
  • Handle indirect objects as parameters for CCITTFaxDecode (#2307) by @stefan6419846
  • check words length in cmap type1alternative function (#2310) by @Takher

Robustness (ROB)

  • Relax flate decoding for too many lookup values (#2331) by @stefan6419846
  • Let builddestination skip in case of missing /D key (#2018) by @nickryand

Documentation (DOC)

  • Note in reading form data (#2338) by @MartinThoma
  • Pull Request prefixes and size by @MartinThoma
  • Add https://github.com/zuypt for #2325 as a contributor by @MartinThoma
  • Fix docstring for RunLengthDecode.decode (#2302) by @stefan6419846

Maintenance (MAINT)

  • Enable disallow_any_generics and add missing generics (#2278) by @nilehmann

Testing (TST)

  • Centralize file downloads (#2324) by @MartinThoma

Code Style (STY)

  • Fix typo "steam" \xe2\x86\x92 "stream" (#2327) by @stefan6419846
  • Run black by @MartinThoma
  • Make Traceback in bug report template uppercase (#2304) by @stefan6419846

Full Changelog

- Python
Published by github-actions[bot] about 2 years ago

pypdf - Version 3.17.1, 2023-11-14

What's new

Bug Fixes (BUG)

  • Mediabox expansion size when applying non-right angle rotation (#2282) by @MrinalJain17

Robustness (ROB)

  • MissingWidth is IndirectObject (#2288) by @MartinThoma
  • Initialize states array with an empty value (#2280) by @alexey-v-paramonov

Documentation (DOC)

  • Typo in example in extract-attachments.md (#2285) by @ageitgey
  • Add Alexey Paramonov as a contributor for #2280 by @MartinThoma

Maintenance (MAINT)

  • Update sample-files by @MartinThoma

Full Changelog

- Python
Published by github-actions[bot] over 2 years ago

pypdf - Version 3.17.0, 2023-10-29

What's new

Security (SEC)

  • Infinite recursion when using PdfWriter(clone_from=reader) (#2264) by @Alexhuszagh

New Features (ENH)

  • Add parameter to select images to be removed (#2214) by @pubpub-zz

Bug Fixes (BUG)

  • Correctly handle image mode 1 with FlateDecode (#2249) by @stefan6419846
  • Error when filling a value with parentheses #2268 (#2269) by @KanorUbu
  • Handle empty root outline (#2239) by @pubpub-zz

Documentation (DOC)

  • Improve merging docs (#2247) by @stefan6419846

Developer Experience (DEV)

  • Test Python 3.7 with cryptopgraphy provider as well (#2276) by @stefan6419846
  • Run CI with windows-latest (#2258) by @MartinThoma
  • Use pytest-xdist (#2254) by @MartinThoma
  • Attribute correct authors in the release notes (#2246) by @stefan6419846

Maintenance (MAINT)

  • Apply pre-commit hooks (#2277) by @MartinThoma
  • Update requirements + mypy fixes (#2275) by @MartinThoma
  • Explicitly provide Any for IO generic argument (#2272) by @nilehmann

Testing (TST)

  • Fix testimagewithout_pillow in windows environment (#2257) by @pubpub-zz

Code Style (STY)

  • Remove unused import by @MartinThoma

Full Changelog

- Python
Published by github-actions[bot] over 2 years ago

pypdf - Version 3.16.4, 2023-10-10

What's new

Bug Fixes (BUG)

  • Avoid exceeding recursion depth when retrieving image mode (#2251) by @stefan6419846

Maintenance (MAINT)

  • Bump sample-files by @MartinThoma

Full Changelog

- Python
Published by github-actions[bot] over 2 years ago

pypdf - Version 3.16.3, 2023-10-08

What's new

Bug Fixes (BUG)

  • invalid cm/tm in visitor functions (#2206) by @pubpub-zz
  • Encrypt / decrypt Stream object dictionaries (#2228) by @pilotandy
  • Support nested color spaces for the /DeviceN color space (#2241) by @stefan6419846
  • images property fails if NullObject in list (#2215) by @pubpub-zz

Robustness (ROB)

  • XYZ destination to cope with missing left and top param (#2237) by @pubpub-zz

Documentation (DOC)

  • Add pilotandy for #2228 as a contributor by @MartinThoma
  • Link to CONTRIBUTING.md in README.md (#2232) by @MarkPfeifle
  • Changelog by @MartinThoma

Developer Experience (DEV)

  • Exclude tests from mypy checks by @MartinThoma
  • Unify mypy options and warn redundant workarounds (#2223) by @exiledkingcc
  • Stabilize Pillow test with Pillow missing (#2229) by @stefan6419846

Maintenance (MAINT)

  • Update pinned packages (#2243) by @MartinThoma

Testing (TST)

  • Regression test against non-deterministic accidental object reuse (#2244) by @sjoerdjob

Full Changelog

- Python
Published by github-actions[bot] over 2 years ago

pypdf - Version 3.16.2, 2023-09-24

What's new

Bug Fixes (BUG)

  • PDF size increases because of too high float writing precision (#2213) by @pubpub-zz
  • Fix testwatermarkingreportlab_rendering() (#2203) by @Lucas-C

Documentation (DOC)

  • Fix typos and add a paragraph to ViewerPreferences docs (#2199) by @marcstober
  • How to install pypi from any branch (#2209) by @pubpub-zz
  • Update copyright footer in docs (#2207) by @marcstober

Developer Experience (DEV)

  • Let dependabot update Github Actions by @MartinThoma

Maintenance (MAINT)

  • Update .pre-commit-config.yaml by @MartinThoma

Full Changelog

- Python
Published by github-actions[bot] over 2 years ago

pypdf - Version 3.16.1, 2023-09-17

What's new

Bug Fixes (BUG)

  • Missing new line in extract_text with cm operations (#2142) by @pubpub-zz
  • getfonts not processing properly CIDFonts and annotations (#2194) by @pubpub-zz

Documentation (DOC)

  • Sort list of contributors by @MartinThoma

Developer Experience (DEV)

  • Give attribution in release notes (#2196) by @MartinThoma

Maintenance (MAINT)

  • Update packages (#2195) by @MartinThoma
  • Rename PdfWriter.createviewerpreferences to PdfWriter.createviewerpreferences (#2190) by @marcstober
  • Mark cryptography as default (#2186) by @exiledkingcc

Testing (TST)

  • Issue with merging pdfkit (#2191) by @MartinThoma

Code Style (STY)

  • clean-up overriden variable (#2189) by @pubpub-zz

Full Changelog

- Python
Published by github-actions[bot] over 2 years ago

pypdf - Version 3.16.0, 2023-09-10

What's new

New Features (ENH)

  • Ease access to ViewerPreferences (#2144)

Bug Fixes (BUG)

  • Infinite recursion caused by IndirectObject clone (#2156)
  • catch the case where w[0] is an IndirectObject instead of an int (#2154)
  • Cope with indirect objects in filters and remove deprecated code (#2177)
  • Cope with extra space (#2151)
  • Merge pages without resources (#2150)
  • getcontents() shall return None if contents is NullObject (#2161)
  • Fix conversion from 1 to LA (#2175)
  • Accept tabs in cmaps (#2174)

Robustness (ROB)

  • Accept XYZ with no arguments (#2178)

Documentation (DOC)

  • Mention pdfly on frontpage of docs (#2183)
  • Cross-link pdfly (#2184)
  • Typos in ViewerPreferences docstrings (#2169)

Code Style (STY)

  • Apply ruff rule N806 for some file (#2149)
  • Move functions within xobjto_image to a private module (#2182)

Full Changelog

- Python
Published by github-actions[bot] over 2 years ago

pypdf - Version 3.15.5, 2023-09-03

What's new

Bug Fixes (BUG)

  • Cope with missing /I in articles (#2134)
  • Fix image look-up table in EncodedStreamObject (#2128)
  • remove_images not operating in sub level forms (#2133)

Robustness (ROB)

  • Cope with damaged PDF (#2129)

Documentation (DOC)

  • How to take ownership (#2123)

Developer Experience (DEV)

  • Download PDFs before executing the tests to not run into timeouts (#2143)
  • Add workflow_dispatch to CI (#2145)
  • Automatically create release message / tag message (#2127)
  • Ensure the REL commit message is consistently created (#2126)

Testing (TST)

  • Add test for correct rendering of watermarks (#2130)

Full Changelog

- Python
Published by github-actions[bot] over 2 years ago

pypdf - Version 3.15.4, 2023-08-27

What's new

Performance Improvements (PI)

  • Making pypdf as fast as pdfrw (#2086)

Maintenance (MAINT)

  • Relax typing_extensions version (#2104)

Full Changelog

- Python
Published by github-actions[bot] over 2 years ago

pypdf - Version 3.15.3, 2023-08-26

What's new

Bug Fixes (BUG)

  • Check version of crypt provider (#2115)
  • TypeError: can't concat str to bytes (#2114)
  • Require flit_core >= 3.9 (#2091)

Full Changelog

- Python
Published by github-actions[bot] over 2 years ago

pypdf - Version 3.15.2, 2023-08-20

What's new

Security (SEC)

  • Avoid endless recursion of reading damaged PDF file (#2093)

Performance Improvements (PI)

  • Re-use content stream (#2101)

Maintenance (MAINT)

  • Make ParseError inherit from PyPdfError (#2097)

Full Changelog

- Python
Published by github-actions[bot] over 2 years ago

pypdf - Version 3.15.1, 2023-08-13

What's new

Performance Improvements (PI)

  • optimize decodepng_prediction (#2068)

Bug Fixes (BUG)

  • Fix incorrect tmmatrix in call to visitortext (#2060)
  • Writing German characters into form fields (#2047)
  • Prevent stall when accessing image in corrupted pdf (#2081)
  • append() fails when articles do not have /T (#2080)

Robustness (ROB)

  • Cope with xref not followed by separator (#2083)

Full Changelog

- Python
Published by github-actions[bot] over 2 years ago

pypdf - Version 3.15.0, 2023-08-06

Changes

New Features (ENH)

  • Add level parameter to compresscontentstreams (#2044)
  • Process /uniHHHH for text_extract (#2043)

Bug Fixes (BUG)

  • Fix AnnotationBuilder.link (#2066)
  • JPX image without ColorSpace (#2062)
  • Added check for field /Info when cloning reader document (#2055)
  • Fix indexed/CMYK images (#2039)

Maintenance (MAINT)

  • Cryptography as primary dependency (#2053)

Full Changelog

- Python
Published by github-actions[bot] over 2 years ago

pypdf - Version 3.14.0, 2023-07-29

What's new

New Features (ENH)

  • Accelerate image list keys generation (#2014)
  • Use cryptography for encryption/decryption as a fallback for PyCryptodome (#2000)
  • Extract LaTeX characters (#2016)
  • ASCIIHexDecode.decode now returns bytes instead of str (#1994) :warning: This could be a breaking change for people who directly use ASCIIHexDecode. If you don't import ASCIIHexDecode, you're safe. It was not marked explicitly as a breaking change as it should have returned bytes in the first place.

Bug Fixes (BUG)

  • Add RunLengthDecode filter (#2012)
  • Process /Separation ColorSpace (#2007)
  • Handle single element ColorSpace list (#2026)
  • Process lookup decoded as TextStringObjects (#2008)

Robustness (ROB)

  • Cope with garbage collector during cloning (#1841)

Maintenance (MAINT)

  • Cleanup of annotations (#1745)

- Python
Published by github-actions[bot] over 2 years ago

pypdf - Version 3.13.0, 2023-07-23

What's new

New Features (ENH)

  • Add is_open in outlines in PdfReader and PdfWriter (#1960)

Bug Fixes (BUG)

  • Search /DA in hierarchy fields (#2002)
  • Cope with different ISO date length (#1999)
  • Decode Black only/CMYK deviceN images (#1984)
  • Process CMYK in deflate images (#1977)

Developer Experience (DEV)

  • Add mypy to pre-commit (#2001)
  • Release automation (#1991, #1985)

Full Changelog

- Python
Published by github-actions[bot] over 2 years ago

pypdf - Version 3.12.2, 2023-07-16

What's Changed

Bug Fixes (BUG)

  • Accept calRGB and calGray color_spaces (#1968) by @pubpub-zz
  • Process 2bits and 4bits images (#1967) by @pubpub-zz
  • Check for AcroForm and ensure it is not None (#1965) by @nickryand

Developer Experience (DEV)

  • Automate the release process (#1970)

New Contributors

  • @nickryand made their first contribution in https://github.com/py-pdf/pypdf/pull/1965

Full Changelog: https://github.com/py-pdf/pypdf/compare/3.12.1...3.12.2

- Python
Published by github-actions[bot] over 2 years ago

pypdf - Version 3.12.1

What's Changed

  • Prevent updating page contents after merging page (stamping/watermarking) (#1952) by @pubpub-zz
  • % to be hex encoded in names (#1958) by @pubpub-zz
  • Inverse color in CMYK images (#1947) by @pubpub-zz
  • Dates conversion not working with Z00\'00\' (#1946) by @pubpub-zz
  • Support UTF-16-LE Strings (#1884) by @adamchainz

Full Changelog

- Python
Published by MartinThoma over 2 years ago

pypdf - Version 3.12.0, 2023-07-02

What's Changed

We finally fully support modern cryptography for encrypting and decrypting PDF files. A big thank you to @exiledkingcc who did this work a while a go πŸ™

New Features (ENH)

  • Add AES support for encrypting PDF files (#1918, #1935, #1936, #1938) by @exiledkingcc
  • Add page deletion feature to PdfWriter (#1843) by @pubpub-zz

Bug Fixes (BUG)

  • PdfReader.get_fields() attempts to delete non-existing index "/Off" (#1933) by @dmjohnsson23
  • Remove unused objects when cloning_from (#1926) by @pubpub-zz
  • Add the TK.SIZE into the trailer (#1911) by @talcher
  • addnameddestination() maintains named destination list sort order (#1930) by @robertkearns

Full Changelog

New Contributors

  • @postmeback made their first contribution in https://github.com/py-pdf/pypdf/pull/1920
  • @talcher made their first contribution in https://github.com/py-pdf/pypdf/pull/1911
  • @jolheiser made their first contribution in https://github.com/py-pdf/pypdf/pull/1921
  • @robertkearns made their first contribution in https://github.com/py-pdf/pypdf/pull/1931
  • @dmjohnsson23 made their first contribution in https://github.com/py-pdf/pypdf/pull/1933

Full Changelog: https://github.com/py-pdf/pypdf/compare/3.11.1...3.12.0

- Python
Published by MartinThoma over 2 years ago

pypdf - Version 3.11.1, 2023-06-25

What's Changed

Bug Fixes (BUG)

  • Cascaded filters in image objects (#1913) by @pubpub-zz
  • Append pdf with named destination using numbers for pages (#1858) by @pubpub-zz
  • Ignore "/B" fields only on pages in PdfWriter.append() (#1875) by @pubpub-zz

Full Changelog

- Python
Published by MartinThoma over 2 years ago

pypdf - Version 3.11.0, 2023-06-23

What's Changed

New Features (ENH)

  • Add page_number property (#1856) by @pubpub-zz

Bug Fixes (BUG)

  • File expansion when updating with Page Contents (#1906) by @pubpub-zz
  • Missing Alternate in indexed/ICCbased colorspaces (#1896) by @pubpub-zz

Full Changelog

- Python
Published by MartinThoma over 2 years ago

pypdf - Version 3.10.0, 2023-06-18

What's Changed

This release is focused around improving pypdf's capabilities around handling images, but pypdf should now also deal better with forms.

A big thank you to @pubpub-zz who went above and beyond in this release :clap: :hugs:

New Features (ENH)

  • Extend images interface by returning an ImageFile(File) class (#1848) by @pubpub-zz
  • Add capability to replace image (#1849) by @pubpub-zz
  • Extraction of inline images (#1850) by @pubpub-zz
  • Add set_data to EncodedStreamObject (#1854) by @pubpub-zz

Bug Fixes (BUG)

  • Fix RGB FlateEncode Images(PNG) and transparency (#1834) - Add capability to replace image (#1849) by @pubpub-zz
  • Generate static appearance for fields (#1864) by @pubpub-zz

Full Changelog

New Contributors

  • @adamchainz made their first contribution in https://github.com/py-pdf/pypdf/pull/1885
  • @jpmedras made their first contribution in https://github.com/py-pdf/pypdf/pull/1890
  • @Ineffable22 made their first contribution in https://github.com/py-pdf/pypdf/pull/1861
  • @harshhes made their first contribution in https://github.com/py-pdf/pypdf/pull/1886

Full Changelog: https://github.com/py-pdf/pypdf/compare/3.9.1...3.10.0

- Python
Published by MartinThoma over 2 years ago

pypdf - 3.9.1

What's Changed

Deprecations (DEP)

  • Deprecate PdfMerger (#1866) by @pubpub-zz

Bug Fixes (BUG)

  • Ignore UTF-8 decode errors (#1865) by @talibhmukadam

Robustness (ROB)

  • Handle missing /Type entry in Page tree (#1859) by @pubpub-zz

New Contributors

  • @talibhmukadam made their first contribution in https://github.com/py-pdf/pypdf/pull/1865

Full Changelog: https://github.com/py-pdf/pypdf/compare/3.9.0...3.9.1

- Python
Published by MartinThoma over 2 years ago

pypdf - Version 3.9.0, 2023-05-21

What's Changed

New Features (ENH)

  • Simplify metadata input (Document Information Dictionary) (#1851) by @pubpub-zz
  • Extend cmap compatibilty to GBKEUCH/V (#1812) by @pubpub-zz

Bug Fixes (BUG)

  • Prevent infinite loop when no character follows after a comment (#1828) by @exiledkingcc
  • get_contents does not return ContentStream (#1847) by @pubpub-zz
  • Accept XYZ destination with zoom missing (default to zoom=0.0) (#1844) by @pubpub-zz
  • Cope with 1 Bit images (#1815) by @pubpub-zz

Robustness (ROB)

  • Handle missing /Type entry in Page tree (#1845) by @pubpub-zz

Documentation (DOC)

  • Expand file size explanations (#1835) by @DIvkov575
  • Add comparison with pdfplumber (#1837) by @RitchieP

Maintenance (MAINT)

  • Add R parameter to generate_values (#1820) by @exiledkingcc
  • Prepare for adding AES enryption support (#1818) by @exiledkingcc

Code Style (STY):

  • Iterate directly over the list instead of using range (#1839) by @jsonn

Full Changelog

New Contributors

  • @RitchieP made their first contribution in https://github.com/py-pdf/pypdf/pull/1837
  • @jsonn made their first contribution in https://github.com/py-pdf/pypdf/pull/1839
  • @DIvkov575 made their first contribution in https://github.com/py-pdf/pypdf/pull/1835

Full Changelog: https://github.com/py-pdf/pypdf/compare/3.8.1...3.9.0

- Python
Published by MartinThoma almost 3 years ago

pypdf - Version 3.8.1, 2023-04-23

What's Changed

Bug Fixes (BUG)

  • Convert color space before saving (#1802)

Documentation (DOC)

  • PDF/A (#1807)
  • Use append instead of add_page (#1806) by @neversphere
  • Document core mechanics of pypdf (#1783)

New Contributors

  • @neversphere made their first contribution in https://github.com/py-pdf/pypdf/pull/1806

Full Changelog: https://github.com/py-pdf/pypdf/compare/3.8.0...3.8.1

- Python
Published by MartinThoma almost 3 years ago

pypdf - Version 3.8.0, 2023-04-16

What's Changed

New Features (ENH)

  • Add transform method to Transformation class (#1765) by @rrthomas
  • Cope with UC2 fonts in text_extraction (#1785) by @pubpub-zz

Robustness (ROB)

  • Invalid startxref pointing 1 char before (#1784) by @pubpub-zz

Maintenance (MAINT)

  • Mark code handling old parameters as deprecated (#1798)

Full Changelog

New Contributors

  • @rrthomas made their first contribution in https://github.com/py-pdf/pypdf/pull/1765

Full Changelog: https://github.com/py-pdf/pypdf/compare/3.7.1...3.8.0

- Python
Published by MartinThoma almost 3 years ago

pypdf - 3.7.1

What's Changed

Security (SEC)

  • Warn about PDF encryption security (#1755)

Robustness (ROB)

  • Prevent loop in Cloning (#1770) by @pubpub-zz
  • Capture UnicodeDecodeError at PdfReader.pdf_header (#1768) by @pubpub-zz

Documentation (DOC)

  • Add .readthedocs.yaml and bump docs dependencies using tox -e deps (#1750, #1752) by @adehad

Developer Experience (DEV)

  • Make make_changelog.py idempotent

Maintenance (MAINT)

  • Move generation of file identifiers to a method (#1760)

Testing (TST)

  • Add xmp test (#1775)

New Contributors

  • @adehad made their first contribution in https://github.com/py-pdf/pypdf/pull/1750

Full Changelog: https://github.com/py-pdf/pypdf/compare/3.7.0...3.7.1

- Python
Published by MartinThoma almost 3 years ago

pypdf - Version 3.7.0, 2023-03-26

What's Changed

Security (SEC)

  • Use Python's secrets module instead of random module (#1748)

New Features (ENH)

  • Add AnnotationBuilder.highlight text markup annotation (#1740)
  • Add AnnotationBuilder.popup (#1665) by @pubpub-zz
  • Add AnnotationBuilder.polyline annotation support (#1726)
  • Add clone_from parameter in PdfWriter constructor (#1703) by @pubpub-zz

Bug Fixes (BUG)

  • 'DictionaryObject' object has no attribute 'indirect_reference' (#1729) by @pubpub-zz

Robustness (ROB)

  • Handle params NullObject in decodestreamdata (#1738) by @pubpub-zz

Documentation (DOC)

  • Project scope (#1743)

Maintenance (MAINT)

  • Add AnnotationFlag (#1746)
  • Add LazyDict.str (#1727)

Full Changelog

- Python
Published by MartinThoma almost 3 years ago

pypdf - Version 3.6.0, 2023-03-18

What's Changed

New Features (ENH)

  • Extend PdfWriter.append() to PageObjects (#1704) by @pubpub-zz
  • Support qualified names in updatepageformfieldvalues (#1695) by @xi

Robustness (ROB)

  • Tolerate streams without length field (#1717) by @pubpub-zz
  • Accept DictionaryObject in /D of NamedDestination (#1720) by @pubpub-zz
  • Widths def in cmap calls IndirectObject (#1719) by @pubpub-zz

New Contributors

  • @xi made their first contribution in https://github.com/py-pdf/pypdf/pull/1695

Full Changelog: https://github.com/py-pdf/pypdf/compare/3.5.2...3.6.0

- Python
Published by MartinThoma almost 3 years ago

pypdf - 3.5.2

What's Changed

Bug Fixes (BUG)

  • compresscontentstream not readable in Adobe Acrobat (#1698) by @pubpub-zz
  • Pass logging parameters correctly in setneedappearances_writer (#1697) by @rolisz
  • Write /Root/AcroForm in setneedappearances_writer (#1639) by @cryzed

Robustness (ROB)

  • Allow more whitespaces within linearized file (#1701) by @pubpub-zz

New Contributors

  • @cryzed made their first contribution in https://github.com/py-pdf/pypdf/pull/1639
  • @rolisz made their first contribution in https://github.com/py-pdf/pypdf/pull/1697

Full Changelog: https://github.com/py-pdf/pypdf/compare/3.5.1...3.5.2

- Python
Published by MartinThoma almost 3 years ago

pypdf - Version 3.5.1, 2023-03-05

What's Changed

Robustness (ROB)

  • Some attributes not copied in DictionaryObject._clone (#1635) by @pubpub-zz
  • Allow merging multiple time pages with annots (#1624) by @pubpub-zz

Testing (TST)

  • Replace pytest.mark.external by enable_socket (#1657)

Documentation (DOC)

  • Fix misuse of the word 'operand' in the docs (#1684) by @joshuagerstein

New Contributors

  • @joshuagerstein made their first contribution in https://github.com/py-pdf/pypdf/pull/1684

Full Changelog: https://github.com/py-pdf/pypdf/compare/3.5.0...3.5.1

- Python
Published by MartinThoma almost 3 years ago

pypdf - Version 3.5.0, 2023-02-26

What's Changed

New Features (ENH)

  • Add reader.attachments public interface (#1611, #1661) by @pubpub-zz
  • Add PdfWriter.removeobjectsfrompage(page: PageObject, todelete: ObjectDeletionFlag) (#1648) by @pubpub-zz
  • Allow free-text annotation to have transparent border/background (#1664)

Bug Fixes (BUG)

  • Allow decryption with empty password for AlgV5 (#1663) by @christopher5106
  • Let PdfWriter.pages return PageObject after calling clone_document_from_reader() (#1613) by @pubpub-zz
  • Invalid font pointed during merge_resources (#1641) by @pubpub-zz

Robustness (ROB)

  • Cope with invalid objects in IndirectObject.clone (#1637) by @pubpub-zz
  • Improve tolerance to invalid Names/Dests (#1658) by @pubpub-zz
  • Decode encoded values in get_fields (#1636) by @pubpub-zz
  • Let PdfWriter.merge cope with missing "/Fields" (#1628) by @pubpub-zz

Documentation (DOC)

  • paramter -> parameter (#1634) by @engpetermwangi
  • mergetransformedpage() (#1647) by @paternal

Tests (TST)

  • Mark new external tests appropriately (#1632) by @dkg
  • Add tests for page labels (#1642) by @pubpub-zz

New Contributors

  • @engpetermwangi made their first contribution in https://github.com/py-pdf/pypdf/pull/1634
  • @paternal made their first contribution in https://github.com/py-pdf/pypdf/pull/1647
  • @christopher5106 made their first contribution in https://github.com/py-pdf/pypdf/pull/1663

Full Changelog: https://github.com/py-pdf/pypdf/compare/3.4.1...3.5.0

- Python
Published by MartinThoma almost 3 years ago

pypdf - 3.4.1

What's Changed

Bug Fixes (BUG)

  • Switch from trimbox to cropbox when merging pages (#1622)
  • Text extraction not working with one glyph to char sequence (#1620) by @pubpub-zz

Robustness (ROB)

  • Fix 2 cases of "object has no attribute \'indirect_reference\'" (#1616) by @pubpub-zz

Testing (TST)

  • Add multiple retry on get_url for external PDF downloads (#1626) by @pubpub-zz

Documentation (DOC)

  • Complete unfinished sentence (#1617) by @daankoning

New Contributors

  • @daankoning made their first contribution in https://github.com/py-pdf/pypdf/pull/1617

Full Changelog: https://github.com/py-pdf/pypdf/compare/3.4.0...3.4.1

- Python
Published by MartinThoma about 3 years ago

pypdf - 3.4.0

What's Changed

Version 3.4.0, 2023-02-05

NOTICE: pypdf changed the way it represents numbers parsed from PDF files. pypdf<3.4.0 represented numbers as Decimal, pypdf>=3.4.0 represents them as floats. Several other PDF libraries to this, as well as many PDF viewers. We hope to fix issues with too high precision like this and get a speed boost. In case your PDF documents rely on more than 18 decimals of precision you should check if it still works as expected. To clarify: This does not affect the text shown in PDF documents, even if the text are numbers. It affects numbers used by the PDF document, e.g. when graphics are drawn on the PDF or very exact positions are used. Typically, 5 decimals should be enough.

New Features (ENH)

  • Enable merging forms with overlapping names (#1553) by @pubpub-zz
  • Add 'over' parameter to mergetransformendpage & co (#1567) by @pubpub-zz

Bug Fixes (BUG)

  • Fix getter of the PageObject.rotation property with an indirect object (#1602) by @mitchelljkotler
  • Restore mergetransformedpage & co (#1567) by @pubpub-zz
  • Replace decimal by float (#1563, #1608) by @pubpub-zz

Robustness (ROB)

  • PdfWriter.removeimages: /Contents might not be in pageref (#1598)

Developer Experience (DEV)

  • Introduce ruff (#1586, #1609)

Tests (TST)

  • Mark reader test as external (#1575) by @dkg
  • Unlink test output once successfully written (#1579) by @dkg

Full Changelog

New Contributors

  • @mitchelljkotler made their first contribution in https://github.com/py-pdf/pypdf/pull/1602

Full Changelog: https://github.com/py-pdf/pypdf/compare/3.3.0...3.4.0

- Python
Published by MartinThoma about 3 years ago

pypdf - Version 3.3.0, 2023-01-22

What's Changed

New Features (ENH)

  • Add page label support to PdfWriter (#1558) by @lorenzomanini
  • Accept inline images with space before EI (#1552) by @pubpub-zz
  • Add circle annotation support (#1556)
  • Add polygon annotation support (#1557)
  • Make merging pages produce a deterministic PDF (#1542, #1543) by @huonw

Bug Fixes (BUG)

  • Fix error in cmap extraction (#1544) by @pubpub-zz
  • Remove erroneous assertion check (#1564) by @pubpub-zz
  • Fix dictionary access of optional page label keys (#1562)

Robustness (ROB)

  • Set ignoreeof=True for readuntil_regex (#1521) by @rraval

Documentation (DOC)

  • Document PaperSize class (#1550) by @SandroPanchame

Developer Experience (DEV)

  • Fix broken combination of dependencies of docs.txt
  • Annotate tests appropriately (#1551) by @dkg

New Contributors

  • @lorenzomanini made their first contribution in https://github.com/py-pdf/pypdf/pull/1558
  • @rraval made their first contribution in https://github.com/py-pdf/pypdf/pull/1521
  • @huonw made their first contribution in https://github.com/py-pdf/pypdf/pull/1543

Full Changelog: https://github.com/py-pdf/pypdf/compare/3.2.1...3.3.0

- Python
Published by MartinThoma about 3 years ago

pypdf - Version 3.2.1, 2023-01-08

What's Changed

Bug Fixes (BUG)

  • Accept hierarchical fields (#1529) by @pubpub-zz

Documentation (DOC)

  • Use google style docstrings (#1534)
  • Fix linked markdown documents (#1537) by @abyesilyurt

Developer Experience (DEV)

  • Update docs config (#1535)

Full Changelog

- Python
Published by MartinThoma about 3 years ago

pypdf - Version 3.2.0, 2022-12-31

What's Changed

Performance Improvement (PI)

  • Help the specializing adpative interpreter (#1522)

New Features (ENH)

  • Add support for page labels (#1519)

Bug Fixes (BUG)

  • upgrade clonedocumentroot (#1520) by @pubpub-zz

Miscellaneous

  • DOC: Fix migration guide link by @abyesilyurt in https://github.com/py-pdf/pypdf/pull/1516
  • MAINT: Minor Improvements by @robbiebusinessacc in https://github.com/py-pdf/pypdf/pull/1523

New Contributors

  • @abyesilyurt made their first contribution in https://github.com/py-pdf/pypdf/pull/1516
  • @robbiebusinessacc made their first contribution in https://github.com/py-pdf/pypdf/pull/1523

Full Changelog: https://github.com/py-pdf/pypdf/compare/3.1.0...3.2.0

- Python
Published by MartinThoma about 3 years ago

pypdf - Version 3.1.0, 2022-12-23

What's Changed

Move PyPDF2 to pypdf (#1513). This now it's all lowercase, no number in the name. For installation and for import. PyPDF2 will no longer receive updates. The community should move back to its roots (pydf).

Full Changelog: https://github.com/py-pdf/pypdf/compare/3.0.0...3.1.0

- Python
Published by MartinThoma about 3 years ago

pypdf - Version 3.0.0, 2022-12-22

What's Changed

BREAKING CHANGES

  • Deprecate features with PyPDF2==3.0.0 (#1489)
  • Refactor Fit / Zoom parameters (#1437)

New Features (ENH)

  • Add Cloning (#1371) by @pubpub-zz
  • Allow int for indirectreference in PdfWriter.getobject (#1490)

Documentation (DOC)

  • How to read PDFs from S3 (#1509)
  • Make MyST parse all links as simple hyperlinks (#1506) by @mbromet
  • Changed 'latest' for 'stable' generated docs (#1495) by @olsonperrensen
  • Adjust deprecation procedure (#1487)

Maintenance (MAINT)

  • Use typing.IO for file streams (#1498) by @thehale

New Contributors

  • @olsonperrensen made their first contribution in https://github.com/py-pdf/PyPDF2/pull/1495
  • @thehale made their first contribution in https://github.com/py-pdf/PyPDF2/pull/1498
  • @mbromet made their first contribution in https://github.com/py-pdf/PyPDF2/pull/1506

Full Changelog: https://github.com/py-pdf/PyPDF2/compare/2.12.1...3.0.0

- Python
Published by MartinThoma about 3 years ago

pypdf - Version 2.12.1, 2022-12-10

What's Changed

Documentation (DOC)

  • Deduplicate extract_text docstring (#1485)
  • How to cite PyPDF2 (#1476)

Maintenance (MAINT)

Consistency changes: - indirectref/ido βž” indirectreference, destβž” pagedestination (#1467) by @kygoben - ownerpwd/userpwd βž” ownerpassword/userpassword (#1483) - position ➜ pagenumber in Merger.merge (#1482) by @Infus3d - indirectref ➜ indirectreference (#1484)

New Contributors

  • @kygoben made their first contribution in https://github.com/py-pdf/PyPDF2/pull/1467
  • @Infus3d made their first contribution in https://github.com/py-pdf/PyPDF2/pull/1482

Full Changelog: https://github.com/py-pdf/PyPDF2/compare/2.12.0...2.12.1

- Python
Published by MartinThoma about 3 years ago

pypdf - Version 2.12.0, 2022-12-10

What's Changed

Version 2.12.0, 2022-12-10

New Features (ENH)

  • Add support to extract gray scale images (#1460) by @joeywang4
  • Make PdfReader.get_object accept integer arguments (#1459) by @pubpub-zz
  • Add 'threads' property to PdfWriter (#1458) by @pubpub-zz
  • Add 'open_destination' property to PdfWriter (#1431) by @pubpub-zz

Bug Fixes (BUG)

  • Scale PDF annotations (#1479) by @joshhendo

Robustness (ROB)

  • Padding issue with AES encryption (#1469)
  • Accept empty object as null objects (#1477) by @pubpub-zz

Documentation (DOC)

  • Add module documentation the PaperSize class (#1447) by @MagnumBarrage

Maintenance (MAINT)

  • Use 'page_number' instead of 'pagenum' (#1365)
  • Add List of pages to PageRangeSpec (#1456) by @pubpub-zz

Testing (TST)

  • Cleanup temporary files (#1454) by @pubpub-zz
  • Mark testtounicodeis_identity as external (#1449) by @heirecka
  • Use Ubuntu 20.04 for running CI test suite (#1452) by @MasterOdin

Full Changelog

New Contributors

  • @heirecka made their first contribution in https://github.com/py-pdf/PyPDF2/pull/1449
  • @MagnumBarrage made their first contribution in https://github.com/py-pdf/PyPDF2/pull/1447
  • @joeywang4 made their first contribution in https://github.com/py-pdf/PyPDF2/pull/1460
  • @joshhendo made their first contribution in https://github.com/py-pdf/PyPDF2/pull/1479

Full Changelog: https://github.com/py-pdf/PyPDF2/compare/2.11.2...2.12.0

- Python
Published by MartinThoma about 3 years ago

pypdf - Version 2.11.2, 2022-11-20

What's Changed

New Features (ENH)

  • Add removefromtree (#1432) by @pubpub-zz
  • Add AnnotationBuilder.rectangle (#1388)

Bug Fixes (BUG)

  • JavaScript executed twice (#1439) by @pubpub-zz
  • ToUnicode stores /Identity-H instead of stream (#1433) by @pubpub-zz
  • Declare Pillow as optional dependency (#1392)

Developer Experience (DEV)

  • Link 'Full Changelog' automatically
  • Modify readstringfrom_stream to a benchmark (#1415)
  • Improve error reporting of read_object (#1412) by @pubpub-zz
  • Test Python 3.11 (#1404)
  • Extend Flake8 ignore list (#1410)
  • Use correct pytest markers (#1407)
  • Move project configuration to pyproject.toml (#1382) by @singingwolfboy

Documentation (DOC)

  • Fix typos in installation.md by @amyreyespdx in https://github.com/py-pdf/PyPDF2/pull/1419
  • Typos in PDF format documentation by @pavlidvg in https://github.com/py-pdf/PyPDF2/pull/1438

Full Changelog

New Contributors

  • @singingwolfboy made their first contribution in https://github.com/py-pdf/PyPDF2/pull/1391
  • @amyreyespdx made their first contribution in https://github.com/py-pdf/PyPDF2/pull/1419
  • @pavlidvg made their first contribution in https://github.com/py-pdf/PyPDF2/pull/1438

Full Changelog: https://github.com/py-pdf/PyPDF2/compare/2.11.1...2.11.2

- Python
Published by MartinThoma over 3 years ago

pypdf - Version 2.11.1, 2022-10-09

What's Changed

Bug Fixes (BUG)

  • td matrix (#1373) by @srogmann
  • Cope with cmap from #1322 (#1372) by @pubpub-zz

Robustness (ROB)

  • Cope with str returned from get_data in cmap (#1380) by @pubpub-zz

Documentation (DOC)

  • Remove watermark PageObject declaration as it is already present inside for-loop (#1384) by @cs2sandeep

New Contributors

  • @cs2sandeep made their first contribution in https://github.com/py-pdf/PyPDF2/pull/1384

Full Changelog: https://github.com/py-pdf/PyPDF2/compare/2.11.0...2.11.1

- Python
Published by MartinThoma over 3 years ago

pypdf - Version 2.11.0, 2022-09-25

What's Changed

New Features (ENH):

  • Addition of optional visitor-functions in extract_text() (#1252) by @srogmann
  • Add PageObject.images attribute (#1330) by @MartinThoma
  • Add metadata.creationdate and modificationdate (#1364) by @MartinThoma

Bug Fixes (BUG):

  • Lookup index in xobjto_image can be ByteStringObject (#1366)
  • \'IndexError: index out of range\' when using extract_text (#1361)
  • Errors in transferrotationto_content() (#1356) by @pubpub-zz

Robustness (ROB):

  • Ensure updatepageformfieldvalues does not fail if no fields (#1346) by @pubpub-zz

Testing (TST):

  • readstringfrom_stream performance (#1355) by ### @mergezalot

New Contributors

  • @srogmann made their first contribution in https://github.com/py-pdf/PyPDF2/pull/1252

Full Changelog: https://github.com/py-pdf/PyPDF2/compare/2.10.9...2.11.0

- Python
Published by MartinThoma over 3 years ago

pypdf - 2.10.9

What's Changed

New Features (ENH)

  • Add rotation property and transferrotateto_content (#1348) by @pubpub-zz

Performance Improvements (PI)

  • Avoid string concatenation with large embedded base64-encoded images (#1350) by @mergezalot

Bug Fixes (BUG)

  • Format floats using their intrinsic decimal precision (#1267) by @programmarchy

Robustness (ROB)

  • Fix merge_page for pages without resources (#1349) by @pubpub-zz

New Contributors

  • @mergezalot made their first contribution in https://github.com/py-pdf/PyPDF2/pull/1350
  • @programmarchy made their first contribution in https://github.com/py-pdf/PyPDF2/pull/1267

Full Changelog: https://github.com/py-pdf/PyPDF2/compare/2.10.8...2.10.9

- Python
Published by MartinThoma over 3 years ago

pypdf - Version 2.10.8, 2022-09-14

What's Changed

  • ROB: Improve NameObject reading/writing by @pubpub-zz in https://github.com/py-pdf/PyPDF2/pull/1345
  • ENH: Add PageObject.user_unit property by @MartinThoma in https://github.com/py-pdf/PyPDF2/pull/1336

Full Changelog: https://github.com/py-pdf/PyPDF2/compare/2.10.7...2.10.8

- Python
Published by MartinThoma over 3 years ago

pypdf - Version 2.10.7, 2022-09-11

What's Changed

Bug Fixes (BUG)

  • Fix Error in transformations (#1341) by @pubpub-zz
  • Decode #23 in NameObject (#1342) by @pubpub-zz

Testing (TST)

  • Use pytest.warns() for warnings, and .raises() for exceptions (#1325) by @mgorny

New Contributors

  • @mgorny made their first contribution in https://github.com/py-pdf/PyPDF2/pull/1325

Full Changelog: https://github.com/py-pdf/PyPDF2/compare/2.10.6...2.10.7

- Python
Published by MartinThoma over 3 years ago

pypdf - 2.10.6

What's Changed

Two robustness issues were fixed by @pubpub-zz - thank you :pray: The infinite loop issue might also be a security concern, depending on how you use PyPDF2.

Robustness (ROB): - Fix infinite loop due to Invalid object (#1331) - Fix image extraction issue with superfluous whitespaces (#1327)

Full Changelog: https://github.com/py-pdf/PyPDF2/compare/2.10.5...2.10.6

- Python
Published by MartinThoma over 3 years ago

pypdf - Version 1.28.6, 2022-09-08

This is a bugfix for the old 1.x branch of PyPDF2 that still supports Python 2. Please try to update to the latest PyPDF2 > 2.0.0 version to get way better text extraction, support for modern encryption, and much more.

What's Changed

  • BUG: Adjust 'super' calls for Python 2 by @omit66 in https://github.com/py-pdf/PyPDF2/pull/1335

New Contributors

  • @omit66 made their first contribution in https://github.com/py-pdf/PyPDF2/pull/1335

Full Changelog: https://github.com/py-pdf/PyPDF2/compare/1.28.5...1.28.6

- Python
Published by MartinThoma over 3 years ago

pypdf - Version 2.10.5, 2022-09-04

What's Changed

New Features (ENH)

  • Process XRefStm (#1297)
  • Auto-detect RTL for text extraction (#1309) by @pubpub-zz

Bug Fixes (BUG)

  • Avoid scaling cropbox twice (#1314) by @yegorLitvinov

Robustness (ROB)

  • Fix offset correction in revised PDF (#1318) by @pubpub-zz
  • Crop data of /U and /O in encryption dictionary to 48 bytes (#1317) by @exiledkingcc
  • MultiLine bfrange in cmap (#1299) by @pubpub-zz
  • Cope with 2 digit codes in bfchar (#1310) by @pubpub-zz
  • Accept '/annn' charset as ASCII code (#1316) by @pubpub-zz
  • Log errors during Float / NumberObject initialization (#1315) by @pubpub-zz
  • Cope with corrupted entries in xref table (#1300) by @pubpub-zz

Documentation (DOC)

  • Migration guide (PyPDF2 1.x βž” 2.x) (#1324)
  • Creating a coverage report (#1319)
  • Fix AnnotationBuilder.free_text example (#1311)
  • Fix usage of page.scale by replacing it with page.scale_by (#1313) by @yegorLitvinov

Developer Experience (DEV)

  • Only run coverage for PyPDF2

Maintenance (MAINT)

  • PdfReaderProtocol (#1303)
  • Throw PdfReadError if Trailer can't be read (#1298) by @ediamondscience
  • Remove catching OverflowException (#1302)

Testing (TST)

  • Catch Exception for sample-files repo (#1307)

New Contributors

  • @ediamondscience made their first contribution in https://github.com/py-pdf/PyPDF2/pull/1298
  • @yegorLitvinov made their first contribution in https://github.com/py-pdf/PyPDF2/pull/1313
  • @markdlevy made their first contribution in https://github.com/py-pdf/PyPDF2/pull/1311

Full Changelog: https://github.com/py-pdf/PyPDF2/compare/2.10.4...2.10.5

- Python
Published by MartinThoma over 3 years ago

pypdf - Version 2.10.4, 2022-08-28

What's Changed

Robustness (ROB)

  • Fix errors/warnings on no /Resources within extract_text (#1276) by @pubpub-zz
  • Add required line separators in ContentStream ArrayObjects (#1281) by @pubpub-zz

Maintenance (MAINT)

  • Use NameObject idempotency (#1290)

Testing (TST)

  • Rectangle deletion (#1289)
  • Add workflow tests (#1287)
  • Remove files after tests ran (#1286)

Packaging (PKG)

  • Add minimum version for typing_extensions requirement (#1277) by @Shortfinga

New Contributors

  • @Shortfinga made their first contribution in https://github.com/py-pdf/PyPDF2/pull/1277

Full Changelog: https://github.com/py-pdf/PyPDF2/compare/2.10.3...2.10.4

- Python
Published by MartinThoma over 3 years ago

pypdf - Version 2.10.3, 2022-08-21

What's Changed

Robustness (ROB)

  • Decrypt returns empty bytestring (#1258) by @pubpub-zz

Developer Experience (DEV)

  • Modify CI to better verify built package contents (#1244) by @MasterOdin

Maintenance (MAINT)

  • Let PdfMerger.createstream raise NotImplemented (#1251) and remove 'mine' as PdfMerger always creates the stream (#1261)
  • password param of security.alg32(...) is only a string, not bytes (#1259)
  • Remove unreachable code in readblockbackwards (#1250) and extracttext (#1262)

Testing (TST)

  • Delete annotations (#1263)
  • Close PdfMerger in tests (#1260)
  • PdfReader.xmp_metadata workflow (#1257)
  • Various PdfWriter (Layout, Bookmark deprecation) (#1249)

Full Changelog: https://github.com/py-pdf/PyPDF2/compare/2.10.2...2.10.3

- Python
Published by MartinThoma over 3 years ago

pypdf - Version 2.10.2, 2022-08-15

Full Changelog: https://github.com/py-pdf/PyPDF2/compare/2.10.1...2.10.2

- Python
Published by MartinThoma over 3 years ago

pypdf - Version 2.10.1, 2022-08-15

What's Changed

Bug Fixes (BUG)

  • TreeObject.remove_child had a non-PdfObject assignment for Count (#1233, #1234)
  • Fix stream truncated prematurely (#1223) by @pubpub-zz

Documentation (DOC)

  • Fix docstring formatting (#1228)

Maintenance (MAINT)

  • Split generic.py (#1229)

Testing (TST)

  • Decrypt AlgV4 with owner password (#1239)
  • AlgV5.generate_values (#1238)
  • TreeObject.removechild / emptytree (#1235, #1236)
  • createstringobject (#1232)
  • Free-Text annotations (#1231)
  • generic._base (#1230)
  • Strict get fonts (#1226)
  • Increase PdfReader coverage (#1219, #1225)
  • Increase PdfWriter coverage (#1237)
  • 100% coverage for utils.py (#1217)
  • PdfWriter exception non-binary stream (#1218)
  • Don't check coverage for deprecated code (#1216)

Full Changelog: https://github.com/py-pdf/PyPDF2/compare/2.10.0...2.10.1

- Python
Published by MartinThoma over 3 years ago

pypdf - Version 2.10.0, 2022-08-07

What's Changed

New Features (ENH):

  • "with" support for PdfMerger and PdfWriter (#1193) by @JianzhengLuo
  • Add AnnotationBuilder.text(...) to build text annotations (#1202)

Bug Fixes (BUG):

  • Allow IndirectObjects as stream filters (#1211)

Documentation (DOC):

  • Font scrambling
  • Page vs Content scaling (#1208)
  • Example for orientation parameter of extract_text (#1206) by @pubpub-zz
  • Fix AnnotationBuilder parameter formatting (#1204)

Developer Experience (DEV):

  • Add flake8-print (#1203)

Maintenance (MAINT):

  • Introduce WrongPasswordError / FileNotDecryptedError / EmptyFileError (#1201) by @chilledgeek

Full Changelog: https://github.com/py-pdf/PyPDF2/compare/2.9.0...2.10.0

New Contributors πŸŽ‰

  • @JianzhengLuo made their first contribution in https://github.com/py-pdf/PyPDF2/pull/1193
  • @chilledgeek made their first contribution in https://github.com/py-pdf/PyPDF2/pull/1201

Full Changelog: https://github.com/py-pdf/PyPDF2/compare/2.9.0...2.10.0

- Python
Published by MartinThoma over 3 years ago

pypdf - Version 2.9.0, 2022-07-31

What's Changed

New Features (ENH)

  • Add ability to add hex encoded colors to outline items (#1186) by @mtd91429
  • Add support for pathlib.Path in PdfMerger.merge (#1190) by @MartinThoma
  • Add link annotation (#1189) by @MartinThoma
  • Add capability to filter text extraction by orientation (#1175) by @pubpub-zz

Bug Fixes (BUG)

  • Named Dest in PDF1.1 (#1174) by @pubpub-zz
  • Incomplete Graphic State save/restore (#1172) by @pubpub-zz

Documentation (DOC)

  • Update changelog url in package metadata (#1180) by @mkniewallner
  • Mention camelot for table extraction (#1179) by @MartinThoma
  • Mention pyHanko for signing PDF documents (#1178) by @MartinThoma
  • We have CMAP support since a while (#1177) by @MartinThoma

Maintenance (MAINT)

  • Consistent usage of warnings / log messages (#1164) by @MartinThoma
  • Consistent terminology for outline items (#1156) by @mtd91429

New Contributors

  • @mkniewallner made their first contribution in https://github.com/py-pdf/PyPDF2/pull/1180 :tada:

Full Changelog: https://github.com/py-pdf/PyPDF2/compare/2.8.1...2.9.0

- Python
Published by MartinThoma over 3 years ago

pypdf - Version 2.8.1, 2022-07-25

What's Changed

Bug Fixes (BUG)

  • uhash in AlgV4.computekey (#1170) by @exiledkingcc

Robustness (ROB)

  • Fix loading of file from #134 (#1167)
  • Cope with empty DecodeParams (#1165) by @pubpub-zz

Documentation (DOC)

  • Typo in merger deprecation warning message (#1166) by @pubpub-zz

Maintenance (MAINT)

  • Package updates; solve mypy strict remarks (#1163)

Testing (TST)

  • Add test from #325 (#1169) by @pubpub-zz

Full Changelog: https://github.com/py-pdf/PyPDF2/compare/2.8.0...2.8.1

- Python
Published by MartinThoma over 3 years ago

pypdf - Version 2.8.0, 2022-07-24

What's Changed

Thank you @pubpub-zz and @exiledkingcc for your contributions :heart:

New Features (ENH)

  • Add writer.add_annotation, page.annotations, and generic.AnnotationBuilder (#1120)

Bug Fixes (BUG)

  • Set /AS for /Btn form fields in writer (#1161)
  • Ignore if /Perms verify failed (#1157)

Robustness (ROB)

  • Cope with utf16 character for space calculation (#1155)
  • Cope with null params for FitH / FitV destination (#1152)
  • Handle outlines without valid destination (#1076)

Developer Experience (DEV)

  • Introduce utils.loggerwarning (#1148)

Maintenance (MAINT)

  • Break up parsetounicode (#1162)
  • Add diagnostic output to exception in readfromstream (#1159)
  • Reduce PdfReader.read complexity (#1151)

Testing (TST)

  • Add workflow tests found by arc testing (#1154)
  • Decrypt file which is not encrypted (#1149)
  • Test CryptRC4 encryption class; test image extraction filters (#1147)

Full Changelog: https://github.com/py-pdf/PyPDF2/compare/2.7.0...2.8.0

- Python
Published by MartinThoma over 3 years ago

pypdf - Version 1.28.5, 2022-07-21

What's Changed

  • BUG: Add missing deprecated EncodedStreamObject functions by @MasterOdin in https://github.com/py-pdf/PyPDF2/pull/1140

Full Changelog: https://github.com/py-pdf/PyPDF2/compare/1.28.4...1.28.5

- Python
Published by MartinThoma over 3 years ago

pypdf - Version 2.7.0, 2022-07-21

What's Changed

New Features (ENH)

  • Add outline_count property (#1129)

Bug Fixes (BUG)

  • Make reader.get_fields also return dropdowns with options (#1114)
  • Add deprecated EncodedStreamObject functions back until PyPDF2==3.0.0 (#1139)

Robustness (ROB)

  • Cope with missing /W entry (#1136)
  • Cope with invalid parent xref (#1133)

Documentation (DOC)

  • Contributors file (#1132)
  • Fix type in signature of PdfWriter.add_uri (#1131)

Developer Experience (DEV)

  • Add .git-blame-ignore-revs (#1141)

Code Style (STY)

  • Fixing typos (#1137)
  • Re-use code via getoutlinesproperty in tests (#1130)

New Contributors

  • @KourFrost made their first contribution in https://github.com/py-pdf/PyPDF2/pull/1114

Full Changelog: https://github.com/py-pdf/PyPDF2/compare/2.6.0...2.7.0

- Python
Published by MartinThoma over 3 years ago

pypdf - 2.6.0

What's Changed

New Features (ENH)

  • Add color and font_format to PdfReader.outlinesi
  • Extract Text Enhancement (whitespaces) (#1084)

Bug Fixes (BUG)

  • Use build_destination for named destination outlines (#1128)
  • Avoid a crash when a ToUnicode CMap has an empty dstString in beginbfchar (#1118)
  • Prevent deduplication of PageObject (#1105)
  • None-check in DictionaryObject.readfromstream (#1113)
  • Avoid IndexError in cmap.parseto_unicode (#1110)

Documentation (DOC)

  • Explanation for git submodule
  • Watermark and stamp (#1095)

Maintenance (MAINT)

  • Text extraction improvements (#1126)
  • Destination.color returns ArrayObject instead of tuple as fallback (#1119)
  • Use addbookmarkdestination in add_bookmark (#1100)
  • Use addbookmarkdestination in addbookmarkdict (#1099)

Testing (TST)

  • Add test for arab text (#1127)
  • Add xfail for decryption fail (#1125)
  • Add xfail test for IndexError when extracting text (#1124)
  • Add MCVE showing outline title issue (#1123)

Code Style (STY)

  • Use IntFlag for permissionsflag / updatepageformfield_values (#1094)
  • Simplify code (#1101)

New Contributors

  • @mtd91429 made their first contribution in https://github.com/py-pdf/PyPDF2/pull/1104
  • @dkg made their first contribution in https://github.com/py-pdf/PyPDF2/pull/1110
  • @jlshin made their first contribution in https://github.com/py-pdf/PyPDF2/pull/1113

Full Changelog: https://github.com/py-pdf/PyPDF2/compare/2.5.0...2.6.0

- Python
Published by MartinThoma over 3 years ago

pypdf - Version 2.5.0, 2022-07-10

What's Changed

New Features (ENH)

  • Add support for indexed color spaces / BitsPerComponent for decoding PNGs (#1067)
  • Add PageObject.getfonts (#1083)

Performance Improvements (PI)

  • Use iterative DFS in PdfWriter.sweepindirect_references (#1072)

Bug Fixes (BUG)

  • Let Page.scale also scale the crop-/trim-/bleed-/artbox (#1066)
  • Column default for CCITTFaxDecode (#1079)

Robustness (ROB)

  • Guard against None-value in getoutlines (#1060)

Documentation (DOC)

  • Stamps and watermarks (#1082)
  • OCR vs PDF text extraction (#1081)
  • Python Version support
  • Formatting of CHANGELOG

Developer Experience (DEV)

  • Cache downloaded files (#1070)
  • Speed-up for CI (#1069)

Maintenance (MAINT)

  • Set page.rotate(angle: int) (#1092)
  • Issue #416 was fixed by #1015 (#1078)

Testing (TST)

  • Image extraction (#1080)
  • Image extraction (#1077)

Code Style (STY)

  • Apply black
  • Typo in Changelog

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

- Python
Published by MartinThoma over 3 years ago

pypdf - 2.4.2

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.bytestype (#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 compresscontentstreams (#1061)
  • Minimize diff for #879 (#1049)

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

- Python
Published by MartinThoma over 3 years ago

pypdf - Version 2.4.1, 2022-06-30

What's Changed

New Features (ENH)

  • Add writer.pdf_header property (getter and setter) (#1038)

Performance Improvements (PI)

  • Remove b_ call in FloatObject.writetostream (#1044)
  • Check duplicate objects in writer.sweepindirect_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

- Python
Published by MartinThoma over 3 years ago

pypdf - 2.4.0

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)

  • getformtext_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

- Python
Published by MartinThoma over 3 years ago

pypdf - Version 2.3.1, 2022-06-19

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

- Python
Published by MartinThoma over 3 years ago

pypdf - 2.3.0

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 βž” decodestreamdata
    • PyPDF2.xmp:
    • XmpInformation.rdfRoot βž” XmpInformation.rdf_root
    • XmpInformation.xmpcreateDate βž” XmpInformation.xmpcreate_date
    • XmpInformation.xmpcreatorTool βž” XmpInformation.xmpcreator_tool
    • XmpInformation.xmpmetadataDate βž” XmpInformation.xmpmetadata_date
    • XmpInformation.xmpmodifyDate βž” XmpInformation.xmpmodify_date
    • XmpInformation.xmpMetadata βž” XmpInformation.xmp_metadata
    • XmpInformation.xmpmmdocumentId βž” XmpInformation.xmpmmdocument_id
    • XmpInformation.xmpmminstanceId βž” XmpInformation.xmpmminstance_id
    • PyPDF2.generic:
    • readHexStringFromStream βž” readhexstringfromstream
    • initializeFromDictionary βž” initializefromdictionary
    • createStringObject βž” createstringobject
    • 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

- Python
Published by MartinThoma over 3 years ago

pypdf - Version 2.2.1, 2022-06-17

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

- Python
Published by MartinThoma over 3 years ago

pypdf - Version 2.2.0, 2022-06-13

What's Changed

The 2.2.0 release improves text extraction (#969 - again by @pubpub-zz πŸ™):

  • Improvements around /Encoding / /ToUnicode
  • Extraction of CMaps improved
  • Fallback for font def missing
  • Support for /Identity-H and /Identity-V: utf-16-be
  • Support for /GB-EUC-H / /GB-EUC-V / GBp/c-EUC-H / /GBpc-EUC-V (beta release for evaluation)
  • Arabic (for evaluation)
  • Whitespace extraction improvements

Those changes should mainly improve the text extraction for non-ASCII alphabets, e.g. Russian / Chinese / Japanese / Korean / Arabic.

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

- Python
Published by MartinThoma over 3 years ago

pypdf - Version 2.1.1, 2022-06-12

What's Changed

New Features (ENH)

  • Add support for pathlib as input for PdfReader (#979)

Performance Improvements (PI)

  • Optimize readnextend_line (#646)

Bug Fixes (BUG)

  • Adobe Acrobat \'Would you like to save this file?\' (#970)

Documentation (DOC)

  • Notes on annotations (#982)
  • Who uses PyPDF2
  • intendet \xe2\x9e\x94 in robustness page (#958)

Maintenance (MAINT)

  • pre-commit / requirements.txt updates (#977)
  • Mark readnextend_line as deprecated (#965)
  • Export PageObject in PyPDF2 root (#960)

Testing (TST)

  • Add MCVE of issue #416 (#980)
  • FlateDecode.decode decodeParms (#964)
  • Xmp module (#962)
  • utils.paeth_predictor (#959)

Code Style (STY)

  • Use more tuples and list/dict comprehensions (#976)

New Contributors

  • @Kreusada made their first contribution in https://github.com/py-pdf/PyPDF2/pull/958
  • @xilopaint made their first contribution in https://github.com/py-pdf/PyPDF2/pull/960
  • @ztravis made their first contribution in https://github.com/py-pdf/PyPDF2/pull/646

Full Changelog: https://github.com/py-pdf/PyPDF2/compare/2.1.0...2.1.1

- Python
Published by MartinThoma over 3 years ago

pypdf - Version 2.1.0, 2022-06-06

What's Changed

The highlight of the 2.1.0 release is the most massive improvement to the text extraction capabilities of PyPDF2 since 2016 πŸ₯³πŸŽŠ A very big thank you goes to pubpub-zz who took a lot of time and knowledge about the PDF format to finally get those improvements into PyPDF2. Thank you πŸ€—πŸ’š

In case the new function causes any issues, you can use _extract_text_old for the old functionality. Please also open a bug ticket in that case.

There were several people who have attempted to bring similar improvements to PyPDF2. All of those were valuable. The main reason why they didn't get merged is the big amount of open PRs / issues. pubpub-zz was the most comprehensive PR which also incorporated the latest changes of PyPDF2 2.0.0.

Thank you to VictorCarlquist for #858 and asabramo for #464 πŸ€—

New Features (ENH)

  • Massive text extraction improvement (#924). Closed many open issues:
    • Exceptions / missing spaces in extract_text() method (#17) πŸ•Ί
      • Whitespace issues in extract_text() (#42) πŸ’ƒ
      • pypdf2 reads the hifenated words in a new line (#246)
    • PyPDF2 failing to read unicode character (#37)
      • Unable to read bullets (#230)
    • ExtractText yields nothing for apparently good PDF (#168) πŸŽ‰
    • Encoding issue in extract_text() (#235)
    • extractText() doesn't work on Chinese PDF (#252)
    • encoding error (#260)
    • Trouble with apostophes in names in text "O'Doul" (#384)
    • extract_text works for some PDF files, but not the others (#437)
    • Euro sign not being recognized by extractText (#443)
    • Failed extracting text from French texts (#524)
    • extract_text doesn't extract ligatures correctly (#598)
    • reading spanish text - mark convert issue (#635)
    • Read PDF changed from text to random symbols (#654)
    • .extractText() reads / as 1. (#789)
  • Update glyphlist (#947) - inspired by #464
  • Allow adding PageRange objects (#948)

Bug Fixes (BUG)

  • Delete .python-version file (#944)
  • Compare StreamObject.decoded_self with None (#931)

Robustness (ROB)

  • Fix some conversion errors on non conform PDF (#932)

Documentation (DOC)

  • Elaborate on PDF text extraction difficulties (#939)
  • Add logo (#942)
  • rotate vs Transformation().rotate (#937)
  • Example how to use PyPDF2 with AWS S3 (#938)
  • How to deprecate (#930)
  • Fix typos on robustness page (#935)
  • Remove scripts (pdfcat) from docs (#934)

Developer Experience (DEV)

  • Ignore .python-version file
  • Mark deprecated code with no-cover (#943)
  • Automatically create Github releases from tags (#870)

Testing (TST)

  • Text extraction for non-latin alphabets (#954)
  • Ignore PdfReadWarning in benchmark (#949)
  • writer.remove_text (#946)
  • Add test for Tree and _security (#945)

Code Style (STY)

  • black, isort, Flake8, splitting buildCharMap (#950)

Full Changelog: https://github.com/py-pdf/PyPDF2/compare/2.0.0...2.1.0

New Contributors

  • @chrisdonlan made their first contribution in https://github.com/py-pdf/PyPDF2/pull/931
  • @2e0byo made their first contribution in https://github.com/py-pdf/PyPDF2/pull/870
  • @HarHarLinks made their first contribution in https://github.com/py-pdf/PyPDF2/pull/944

Full Changelog: https://github.com/py-pdf/PyPDF2/compare/2.0.0...2.1.0

- Python
Published by MartinThoma over 3 years ago

pypdf - Version 2.0.0, 2022-06-01

What's Changed

The 2.0.0 release of PyPDF2 includes three core changes:

  1. Dropping support for Python 3.5 and older.
  2. Introducing type annotations.
  3. Interface changes, mostly to have PEP8-compliant names

We introduced a deprecation process that hopefully helps users to avoid unexpected breaking changes.

Breaking Changes (DEP)

  • PyPDF2 2.0 requires Python 3.6+. Python 2.7 and 3.5 support were dropped.
  • PdfFileReader: The "warndest" parameter was removed
  • PdfFileReader and PdfFileMerger no longer have the overwriteWarnings parameter. The new behavior is overwriteWarnings=False.
  • merger: OutlinesObject was removed without replacement.
  • merger.py βž” _merger.py: You must import PdfFileMerger from PyPDF2 directly.
  • utils:
    • ConvertFunctionsToVirtualList was removed
    • formatWarning was removed
    • isInt(obj): Use instance(obj, int) instead
    • u_(s): Use s directly
    • chr_(c): Use chr(c) instead
    • barray(b): Use bytearray(b) instead
    • isBytes(b): Use instance(b, type(bytes())) instead
    • xrange_fn: Use range instead
    • string_type: Use str instead
    • isString(s): Use instance(s, str) instead
    • _basestring: Use str instead
    • All Exceptions are now in PyPDF2.errors:
    • PageSizeNotDefinedError
    • PdfReadError
    • PdfReadWarning
    • PyPdfError
  • PyPDF2.pdf (the pdf module) no longer exists. The contents were moved with the library. You should most likely import directly from PyPDF2 instead. The RectangleObject is in PyPDF2.generic.
  • The Resources, Scripts, and Tests will no longer be part of the distribution files on PyPI. This should have little to no impact on most people. The Tests are renamed to tests, the Resources are renamed to resources. Both are still in the git repository. The Scripts are now in https://github.com/py-pdf/cpdf. Sample_Code was moved to the docs.

For a full list of deprecated functions, please see the changelog of version 1.28.0.

New Features (ENH)

  • Improve space setting for text extraction (#922)
  • Allow setting the decryption password in PdfReader.init (#920)
  • Add Page.add_transformation (#883)

Bug Fixes (BUG)

  • Fix error adding transformation to page without /Contents (#908)

Robustness (ROB)

  • Cope with invalid length in streams (#861)

Documentation (DOC)

  • Fix style of 1.25 and 1.27 patch notes (#927)
  • Transformation (#907)

Developer Experience (DEV)

  • Create flake8 config file (#916)
  • Use relative imports (#875)

Maintenance (MAINT)

  • Use Python 3.6 language features (#849)
  • Add wrapper function for PendingDeprecationWarnings (#928)
  • Use new PEP8 compliant names (#884)
  • Explicitly represent transformation matrix (#878)
  • Inline PAGERANGEHELP string (#874)
  • Remove unnecessary generics imports (#873)
  • Remove star imports (#865)
  • merger.py βž” _merger.py (#864)
  • Type annotations for all functions/methods (#854)
  • Add initial type support with mypy (#853)

Testing (TST)

  • Regression test for xmp_metadata converter (#923)
  • Checkout submodule sample-files for benchmark
  • Add text extracting performance benchmark
  • Use new PyPDF2 API in benchmark (#902)
  • Make test suite fail for uncaught warnings (#892)
  • Remove -OO testrun from CI (#901)
  • Improve tests for converttoint (#899)

Full Changelog: https://github.com/py-pdf/PyPDF2/compare/1.28.4...2.0.0

- Python
Published by MartinThoma over 3 years ago

pypdf - Version 1.28.4, 2022-05-29

What's Changed

Bug Fixes (BUG): - XmpInformation.converterdate was unusable (#921)

Full Changelog: https://github.com/py-pdf/PyPDF2/compare/1.28.3...1.28.4

Full Changelog: https://github.com/py-pdf/PyPDF2/compare/1.28.3...1.28.4

- Python
Published by MartinThoma over 3 years ago

pypdf - Version 1.28.3, 2022-05-28

What's Changed

Deprecations (DEP)

  • PEP8 renaming (#905)

Bug Fixes (BUG)

  • XmpInformation missing method _getText (#917)
  • Fix PendingDeprecationWarning on mergepage (#904)

Full Changelog: https://github.com/py-pdf/PyPDF2/compare/1.28.2...1.28.3

- Python
Published by MartinThoma over 3 years ago

pypdf - Version 1.28.2, 2022-05-23

What's Changed

Bug Fixes (BUG)

  • PendingDeprecationWarning for getContents (#893)
  • PendingDeprecationWarning on using PdfMerger (#891)

Full Changelog: https://github.com/py-pdf/PyPDF2/compare/1.28.1...1.28.2

- Python
Published by MartinThoma almost 4 years ago

pypdf - Version 1.28.1, 2022-05-22

What's Changed

Bug Fixes (BUG)

  • Incorrectly show deprecation warnings on internal usage (#887)

Maintenance (MAINT)

  • Add stacklevel=2 to deprecation warnings (#889)
  • Remove duplicate warnings imports (#888)

Full Changelog: https://github.com/py-pdf/PyPDF2/compare/1.28.0...1.28.1

- Python
Published by MartinThoma almost 4 years ago

pypdf - Version 1.28.0, 2022-05-22

Version 1.28.0, 2022-05-22

This release adds a lot of deprecation warnings in preparation of the PyPDF2 2.0.0 release. The changes are mostly using snake_case function-, method-, and variable-names as well as using properties instead of getter-methods.

Maintenance (MAINT): - Remove IronPython Fallback for zlib (#868)

Full Changelog: https://github.com/py-pdf/PyPDF2/compare/1.27.12...1.27.13

Deprecations (DEP)

  • Make the PyPDF2.utils module private
  • Rename of core classes:
    • PdfFileReader βž” PdfReader
    • PdfFileWriter βž” PdfWriter
    • PdfFileMerger βž” PdfMerger
  • Use PEP8 conventions for function names and parameters
  • If a property and a getter-method are both present, use the property

Details

In many places: - getObject βž” getobject - writeToStream βž” writetostream - readFromStream βž” readfrom_stream

PyPDF2.generic - readObject βž” readobject - convertToInt βž” converttoint - DocumentInformation.getText βž” DocumentInformation.get_text : This method should typically not be used; please let me know if you need it.

PdfReader class: - reader.getPage(pageNumber) βž” reader.pages[page_number] - reader.getNumPages() / reader.numPages βž” len(reader.pages) - getDocumentInfo βž” metadata - flattenedPages attribute βž” flattenedpages - resolvedObjects attribute βž” resolvedobjects - xrefIndex attribute βž” xrefindex - getNamedDestinations / namedDestinations attribute βž” nameddestinations - getPageLayout / pageLayout βž” pagelayout attribute - getPageMode / pageMode βž” pagemode attribute - getIsEncrypted / isEncrypted βž” isencrypted attribute - getOutlines βž” getoutlines - readObjectHeader βž” readobjectheader (TODO: read vs get?) - cacheGetIndirectObject βž” cachegetindirectobject (TODO: public vs private?) - cacheIndirectObject βž” cacheindirectobject (TODO: public vs private?) - getDestinationPageNumber βž” getdestinationpagenumber - readNextEndLine βž” readnextendline - _zeroXref βž” _zeroxref - authenticateUserPassword βž” _authenticateuserpassword - _pageId2Num attribute βž” _pageid2num - buildDestination βž” _builddestination - buildOutline βž” _buildoutline - getPageNumberByIndirect(indirectRef) βž” _getpagenumberbyindirect(indirectref) - getObjectFromStream βž” _getobjectfromstream - decryptObject βž” _decryptobject - flatten(..., indirectRef) βž” _flatten(..., indirectref) - buildField βž” _buildfield - checkKids βž” _checkkids - writeField βž” _writefield - writefield(..., fieldAttributes) βž” writefield(..., fieldattributes) - _readxrefsubsections(..., getEntry, ...) βž” _readxrefsubsections(..., getentry, ...)

PdfWriter class: - writer.getPage(pageNumber) βž” writer.pages[page_number] - writer.getNumPages() βž” len(writer.pages) - addMetadata βž” addmetadata - addPage βž” addpage - addBlankPage βž” addblankpage - addAttachment(fname, fdata) βž” addattachment(filename, data) - insertPage βž” insertpage - insertBlankPage βž” insertblankpage - appendPagesFromReader βž” appendpagesfromreader - updatePageFormFieldValues βž” updatepageformfieldvalues - cloneReaderDocumentRoot βž” clonereaderdocumentroot - cloneDocumentFromReader βž” clonedocumentfromreader - getReference βž” getreference - getOutlineRoot βž” getoutlineroot - getNamedDestRoot βž” getnameddestroot - addBookmarkDestination βž” addbookmarkdestination - addBookmarkDict βž” addbookmarkdict - addBookmark βž” addbookmark - addNamedDestinationObject βž” addnameddestinationobject - addNamedDestination βž” addnameddestination - removeLinks βž” removelinks - removeImages(ignoreByteStringObject) βž” removeimages(ignorebytestringobject) - removeText(ignoreByteStringObject) βž” removetext(ignorebytestringobject) - addURI βž” adduri - addLink βž” addlink - getPage(pageNumber) βž” getpage(pagenumber) - getPageLayout / setPageLayout / pageLayout βž” pagelayout attribute - getPageMode / setPageMode / pageMode βž” pagemode attribute - addObject βž” _addobject - addPage βž” _addpage - sweepIndirectReferences βž” _sweepindirect_references

PdfMerger class - __init__ parameter: strict=True βž” strict=False (the PdfFileMerger still has the old default) - addMetadata βž” addmetadata - addNamedDestination βž” addnameddestination - setPageLayout βž” setpagelayout - setPageMode βž” setpage_mode

Page class: - artBox / bleedBox/ cropBox/ mediaBox / trimBox βž” artbox / bleedbox/ cropbox/ mediabox / trimbox - getWidth, getHeight βž” width / height - getLowerLeftx / getUpperLeftx βž” left - getUpperRightx / getLowerRightx βž” right - getLowerLefty / getLowerRighty βž” bottom - getUpperRighty / getUpperLefty βž” top - getLowerLeft / setLowerLeft βž” lowerleft property - upperRight βž” upperright - mergePage βž” mergepage - rotateClockwise / rotateCounterClockwise βž” rotateclockwise - mergeResources βž” _mergeresources - contentStreamRename βž” _contentstreamrename - _pushPopGS βž” _pushpopgs - _addTransformationMatrix βž” _addtransformationmatrix - _mergePage βž” _mergepage

XmpInformation class: - getElement(..., aboutUri, ...) βž” getelement(..., abouturi, ...) - getNodesInNamespace(..., aboutUri, ...) βž” getnodesinnamespace(..., aboutUri, ...) - _getText βž” _gettext

utils.py: - matrixMultiply βž” matrixmultiply - RC4encrypt is moved to the security module

What's Changed

  • MAINT: Remove IronPython Fallback for zlib by @MartinThoma in https://github.com/py-pdf/PyPDF2/pull/868
  • DEP: Class, variable, and module names by @MartinThoma in https://github.com/py-pdf/PyPDF2/pull/867

Full Changelog: https://github.com/py-pdf/PyPDF2/compare/1.27.12...1.28.0

- Python
Published by MartinThoma almost 4 years ago