Skip to content

Releases: dipietrantonio/pdf4py

pdf4py 0.1.0

19 Apr 05:31
Compare
Choose a tag to compare

Summary

⚠️ BREAKING CHANGES

  • Removes PDFName type and uses str instead.
  • pdf4py.parser.Parser.parse_reference does not return PDFIndirectObject anymore but the wrapped PDF object directly.
  • Compatible with Python 3.4 and above.
  • Code and documentation cleanup.

Major Features and Improvements

  • since PDF names are 8-bit characters sequences that be interpreted as utf8 strings according to the standard, from now on pdf4py returns them as str objects. There is no ambiguity because PDF strings are represented by the PDFLiteralString type (the reason is these may have been encoded using an arbitrary encoding).
  • the method pdf4py.parser.Parser.parse_reference does not return a PDFIndirectObject anymore but the wrapped object directly. It was indeed an unuseful intermediate step.
  • The package is compatible with Python 3.4 and above, not only from 3.6 as stated in the previous release.

Breaking changes

As said above, PDFName has been removed and the return type of pdf4py.parser.Parser.parse_reference has changed.