Skip to content

Releases: py-pdf/pypdf

Version 2.10.5, 2022-09-04

04 Sep 15:35
2.10.5
4073b2a
Compare
Choose a tag to compare

What's Changed

New Features (ENH)

Bug Fixes (BUG)

Robustness (ROB)

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)

Testing (TST)

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

New Contributors

Full Changelog: 2.10.4...2.10.5

Version 2.10.4, 2022-08-28

28 Aug 12:44
2.10.4
3b74312
Compare
Choose a tag to compare

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)

New Contributors

Full Changelog: 2.10.3...2.10.4

Version 2.10.3, 2022-08-21

21 Aug 19:24
2.10.3
2ddc48a
Compare
Choose a tag to compare

What's Changed

Robustness (ROB)

Developer Experience (DEV)

Maintenance (MAINT)

  • Let PdfMerger._create_stream 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 read_block_backwards (#1250) and _extract_text (#1262)

Testing (TST)

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

Full Changelog: 2.10.2...2.10.3

Version 2.10.2, 2022-08-15

15 Aug 14:29
2.10.2
b50c3a8
Compare
Choose a tag to compare

Version 2.10.1, 2022-08-15

15 Aug 12:06
2.10.1
1423c0d
Compare
Choose a tag to compare

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.remove_child / empty_tree (#1235, #1236)
  • create_string_object (#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: 2.10.0...2.10.1

Version 2.10.0, 2022-08-07

07 Aug 10:32
2.10.0
6cc253e
Compare
Choose a tag to compare

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: 2.9.0...2.10.0

New Contributors 🎉

Full Changelog: 2.9.0...2.10.0

Version 2.9.0, 2022-07-31

31 Jul 19:20
2.9.0
0a6676f
Compare
Choose a tag to compare

What's Changed

New Features (ENH)

Bug Fixes (BUG)

Documentation (DOC)

Maintenance (MAINT)

New Contributors

Full Changelog: 2.8.1...2.9.0

Version 2.8.1, 2022-07-25

25 Jul 20:44
2.8.1
5b75160
Compare
Choose a tag to compare

What's Changed

Bug Fixes (BUG)

Robustness (ROB)

Documentation (DOC)

Maintenance (MAINT)

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

Testing (TST)

Full Changelog: 2.8.0...2.8.1

Version 2.8.0, 2022-07-24

24 Jul 09:27
2.8.0
ec30171
Compare
Choose a tag to compare

What's Changed

Thank you @pubpub-zz and @exiledkingcc for your contributions ❤️

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.logger_warning (#1148)

Maintenance (MAINT)

  • Break up parse_to_unicode (#1162)
  • Add diagnostic output to exception in read_from_stream (#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: 2.7.0...2.8.0

Version 2.7.0, 2022-07-21

21 Jul 17:10
2.7.0
6899c74
Compare
Choose a tag to compare

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 get_outlines_property in tests (#1130)

New Contributors

Full Changelog: 2.6.0...2.7.0