Skip to content

pdforensic 0.2.0

Latest

Choose a tag to compare

@github-actions github-actions released this 12 Nov 12:16
c2fbb76

pdforensic 0.2.0 is a rebuild: a full PDF forensic analyzer rather than a wrapper around two prebuilt binaries.

uv tool install pdforensic-authentic-check
pdforensic analyze invoice.pdf

New here? Start with the user guide. On PyPI: https://pypi.org/project/pdforensic-authentic-check/0.2.0/

Added

  • pdforensic analyze: a full report on a PDF. Metadata (Info dictionary and XMP), hashes, encryption, digital signatures, fonts, images, features, every revision with the objects it added, modified or deleted, 27 tamper indicators each tied to a clause of the PDF standard, and how the file was produced.
  • pdforensic recover: writes every earlier revision of an incrementally updated PDF, byte for byte.
  • Python API: analyze(), recover_revisions(), format_report().
  • Password-protected files are read (--password), including those that need no password to open.
  • Detection of conformance claims (PDF/A, PDF/X, PDF/UA, PDF/E, PDF/VT), XMP edit history and print-industry preflight tickets.
  • Windows support, alongside Linux and macOS.
  • A plain-language user guide, technical notes and llms.txt.

Changed

  • Python 3.11 or newer is required, and pikepdf (qpdf) is now a dependency.
  • pdfresurrect is built from source (src/pdfresurrect, v0.24b) instead of shipped as prebuilt binaries. The pdf-meta, pdf-recover, pdf-versions and pdf-eof commands and their Python functions still work.
  • The version number is kept in the VERSION file.

Fixed

  • A PDF is no longer judged by its number of %%EOF markers. Linearized files and every PDF exported from Microsoft Office have two markers without ever having been edited; revisions are now counted from the file's structure.
  • pdfresurrect accepts PDFs smaller than 1023 bytes.

Files

  • pdforensic_authentic_check-*.whl and .tar.gz: the Python package, as published on PyPI.
  • pdfresurrect-*: the bundled pdfresurrect C tool as a standalone program for Linux (x86_64, arm64), macOS (Apple Silicon, Intel) and Windows (x86_64).