v0.3
0.3 includes major changes that should hopefully improve developer experience when reading PDF files.
- pdfnaut now includes typings for many common PDF dictionaries including the trailer, catalog, outlines, and others. (this change introduces a new dependency,
typing-extensions
, for users of Python 3.11 or earlier) - PdfDocument has been added as a foundation of the high-level API. It allows quick access to common PDF objects (such as pages)
- pdfnaut now adds a new "strict" mode that warns or fails when parsing non-spec-compliant documents. This also means pdfnaut is also more lenient towards these files (given that strict=False).
- Document lexing should be slightly faster for references since we now first check for a digit before invoking regex.