Page MenuHomeSolus

Update python-pikepdf to 1.15.1
ClosedPublic

Authored by algent on Wed, Jun 24, 6:10 PM.

Details

Summary

Changelog:

  • Fixed a regression - Pdf.save(filename) may hold file handles open after the file is fully written.
  • Fixed an issue where Decimal objects of precision exceeding the PDF specification could be written to output files, causing some PDF viewers to parse the file incorrectly.
  • We now refuse to create pikepdf objects from float or Decimal that are NaN or ±Infinity. These concepts have no equivalent in PDF.
  • pikepdf.Array objects now implement .append() and .extend() with familiar Python list semantics, making them easier to edit.

Signed-off-by: Algent Albrahimi <algent@protonmail.com>

Test Plan

Run pdfarranger and check if it is working as expected.

Diff Detail

Repository
R4998 python-pikepdf
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

algent created this revision.Wed, Jun 24, 6:10 PM
algent requested review of this revision.Wed, Jun 24, 6:10 PM
JoshStrobl accepted this revision.Fri, Jun 26, 9:30 AM
JoshStrobl added a subscriber: JoshStrobl.

LGTM, thanks!

This revision is now accepted and ready to land.Fri, Jun 26, 9:30 AM
This revision was automatically updated to reflect the committed changes.