software · Q348
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]
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]
Values and visible form appearances
pikepdf offers low-level and higher-level interfaces for AcroForm fields. A field's stored value and its visible appearance are separate concerns; the default higher-level form behavior can leave appearance generation to the receiving reader. Applications that flatten forms must generate appearances first. The form documentation explicitly excludes XFA, so support for ordinary fields must not be generalized to every form distributed as a PDF.[4]
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]
Capabilities & limitations
Form appearances and flattening
limitedAcroForm workflows require appearance streams for flattening; XFA is not supported by this interface.[4]
Python PDF structure and form processing · Linux, Windows, macOS; wheel support varies · Version, build and integration requirements apply
1 source · check evidence
AcroForm, appearance generation, flattening and XFA exclusion
vendor · checked 2026-10-07PDF/A validation
limitedOptional 10.14+ module targets 1b, 2b and 3b; unexamined constructs remain not_checked and it is not certification.[5]
Python PDF structure and form processing · Linux, Windows, macOS; wheel support varies · Version, build and integration requirements apply
1 source · check evidence
10.14 module scope, prepare/check/save distinctions and unsupported verdicts
vendor · checked 2026-10-07Page rasterization
unsupportedThe project explicitly excludes producing rendered page images.[1]
Python PDF structure and form processing · Linux, Windows, macOS; wheel support varies · Version, build and integration requirements apply
1 source · check evidence
Native qpdf wrapper, low-level scope and non-rendering limits
vendor · checked 2026-10-07Can substitute for
These are products or services this entry can replace. Check the task and limitations for each comparison.
References
- pikepdf documentation
Native qpdf wrapper, low-level scope and non-rendering limits
vendor · retrieved 2026-10-07 - pikepdf repository
MPL-2.0 and project identity
vendor · retrieved 2026-10-07 - pikepdf installation
Current wheels, Python versions and macOS architecture requirements
vendor · retrieved 2026-10-07 - pikepdf interactive forms
AcroForm, appearance generation, flattening and XFA exclusion
vendor · retrieved 2026-10-07 - pikepdf PDF/A validation and repair
10.14 module scope, prepare/check/save distinctions and unsupported verdicts
vendor · retrieved 2026-10-07 - pypdf overview
Pure-Python manipulation library
vendor · retrieved 2026-10-07
Discussion & disputes
Ask about unclear claims or explain a concern with supporting sources. If you have a specific fix, suggest a correction.
No discussion yet.
Revision history
Open a revision to read an earlier version of this article.
| Revision | Timestamp | Edit summary |
|---|---|---|
| 334 | 2026-10-11 20:11:26 | /* wbeditentity-create-item:0| */ sf:fcda1a6c-527e-420a-b9ab-d7a286f98fe0:v1 | Add pikepdf with native deployment, form appearances and limited PDF/A validation introduced in 10.14; documentation research only. | attribution: /proposals/fcda1a6c-527e-420a-b9ab-d7a286f98fe0 |