pikepdf Python interface to qpdf for low-level PDF manipulation, repair, forms and metadata workflows.
Overview pikepdf is a Python library built around qpdf's native PDF-processing engine. It exposes document objects, page manipulation and repair-oriented workflows to Python programs. It has no standalone graphical interface and does not rasterize pages, making it a processing component rather than a complete PDF viewing application.[1]
Contents Processing model The library gives programs access to PDF dictionaries, streams and page collections. Typical tasks include combining documents, changing metadata and repairing structural problems. Because it operates at a low level, successful integration can require PDF-format knowledge rather than only a few generic file operations. Its relationship to qpdf also matters when evaluating dependencies: this is not a pure-Python implementation.[1]
Qualified archival validation The optional PDF/A module, introduced in 10.14, checks basic conformance for PDF/A-1b, 2b and 3b. It is neither certification nor a general converter: color conversion and font embedding remain outside its repair scope. Unexamined constructs are reported as not_checked rather than approved. Prepare changes memory state; check predicts a result; the dedicated save operation reopens and validates its written output. These distinctions prevent a preliminary report from being mistaken for validation of later-modified bytes.[5]
Native packages and licensing The project uses MPL-2.0, with separate dependency licenses. Current documentation requires Python 3.11 or later. The detailed installation matrix lists macOS binary wheels for Apple silicon on macOS 15 or newer, alongside Linux and Windows options; Intel Macs and older macOS may require a source build. This specific matrix is more useful than a broad claim that wheels exist for every common platform.[1] [2] [3]
Substitution considerations pikepdf can substitute for pypdf for selected Python PDF-manipulation tasks, but it changes the dependency and API model. The decision should follow the required operations and output checks rather than an assumption that native code makes every workflow superior. Rendering, general format conversion and full archival conversion need separately established components; page manipulation alone does not supply them.[1] [5] [6]
Also included: 3 capabilities and 0 substitute relationships. Check substitutes in section 1 and capabilities in section 3.