{"schemaVersion":"1.0","record":{"label":"pikepdf","description":"Python interface to qpdf for low-level PDF manipulation, repair, forms and metadata workflows.","aliases":[],"kind":"software","website":"https://pikepdf.readthedocs.io/","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.","license":"MPL-2.0; dependencies under their own licenses","lifecycle":"active","example":false,"features":[{"name":"Form appearances and flattening","status":"limited","detail":"AcroForm workflows require appearance streams for flattening; XFA is not supported by this interface.","useCase":"Python PDF structure and form processing","platforms":["Linux","Windows","macOS; wheel support varies"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://pikepdf.readthedocs.io/en/latest/topics/interactive_forms.html","locator":"AcroForm, appearance generation, flattening and XFA exclusion","retrievedAt":"2026-10-07T12:31:32.153Z","kind":"vendor"}]},{"name":"PDF/A validation","status":"limited","detail":"Optional 10.14+ module targets 1b, 2b and 3b; unexamined constructs remain not_checked and it is not certification.","useCase":"Python PDF structure and form processing","platforms":["Linux","Windows","macOS; wheel support varies"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://pikepdf.readthedocs.io/en/latest/topics/pdfa.html","locator":"10.14 module scope, prepare/check/save distinctions and unsupported verdicts","retrievedAt":"2026-10-07T12:31:32.153Z","kind":"vendor"}]},{"name":"Page rasterization","status":"unsupported","detail":"The project explicitly excludes producing rendered page images.","useCase":"Python PDF structure and form processing","platforms":["Linux","Windows","macOS; wheel support varies"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://pikepdf.readthedocs.io/en/latest/","locator":"Native qpdf wrapper, low-level scope and non-rendering limits","retrievedAt":"2026-10-07T12:31:32.153Z","kind":"vendor"}]}],"alternatives":[],"slug":"pikepdf","draftAlternatives":[{"targetSlug":"pypdf","status":"limited","detail":"Can cover Python PDF manipulation with a native qpdf engine; APIs and deployment differ, and rendering is outside this scope.","useCase":"Python PDF structure and form processing","platforms":["Linux","Windows","macOS; wheel support varies"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://pikepdf.readthedocs.io/en/latest/","locator":"Native qpdf wrapper, low-level scope and non-rendering limits","retrievedAt":"2026-10-07T12:31:32.153Z","kind":"vendor"},{"url":"https://pypdf.readthedocs.io/en/stable/","locator":"Pure-Python manipulation library","retrievedAt":"2026-10-07T12:31:32.153Z","kind":"vendor"}]}],"evidence":[{"url":"https://pikepdf.readthedocs.io/en/latest/","locator":"Native qpdf wrapper, low-level scope and non-rendering limits","retrievedAt":"2026-10-07T12:31:32.153Z","kind":"vendor"}],"document":{"version":1,"references":[{"url":"https://pikepdf.readthedocs.io/en/latest/","locator":"Native qpdf wrapper, low-level scope and non-rendering limits","retrievedAt":"2026-10-07T12:31:32.153Z","id":"home","title":"pikepdf documentation","kind":"vendor"},{"url":"https://github.com/pikepdf/pikepdf","locator":"MPL-2.0 and project identity","retrievedAt":"2026-10-07T12:31:32.153Z","id":"repo","title":"pikepdf repository","kind":"vendor"},{"url":"https://pikepdf.readthedocs.io/en/latest/installation.html","locator":"Current wheels, Python versions and macOS architecture requirements","retrievedAt":"2026-10-07T12:31:32.153Z","id":"install","title":"pikepdf installation","kind":"vendor"},{"url":"https://pikepdf.readthedocs.io/en/latest/topics/interactive_forms.html","locator":"AcroForm, appearance generation, flattening and XFA exclusion","retrievedAt":"2026-10-07T12:31:32.153Z","id":"forms","title":"pikepdf interactive forms","kind":"vendor"},{"url":"https://pikepdf.readthedocs.io/en/latest/topics/pdfa.html","locator":"10.14 module scope, prepare/check/save distinctions and unsupported verdicts","retrievedAt":"2026-10-07T12:31:32.153Z","id":"pdfa","title":"pikepdf PDF/A validation and repair","kind":"vendor"},{"url":"https://pypdf.readthedocs.io/en/stable/","locator":"Pure-Python manipulation library","retrievedAt":"2026-10-07T12:31:32.153Z","id":"pypdf","title":"pypdf overview","kind":"vendor"}],"overviewCitations":["home"],"licenseCitations":["repo"],"sections":[{"id":"objects","heading":"Processing model","paragraphs":[{"id":"objects-detail","content":[{"text":"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."}],"citations":["home"]}]},{"id":"forms","heading":"Values and visible form appearances","paragraphs":[{"id":"forms-detail","content":[{"text":"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."}],"citations":["forms"]}]},{"id":"archival","heading":"Qualified archival validation","paragraphs":[{"id":"archival-detail","content":[{"text":"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."}],"citations":["pdfa"]}]},{"id":"deployment","heading":"Native packages and licensing","paragraphs":[{"id":"deployment-detail","content":[{"text":"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."}],"citations":["repo","home","install"]}]},{"id":"comparison","heading":"Substitution considerations","paragraphs":[{"id":"comparison-detail","content":[{"text":"pikepdf can substitute for "},{"text":"pypdf","targetSlug":"pypdf"},{"text":" 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."}],"citations":["home","pypdf","pdfa"]}]}]},"id":"Q348","revision":334,"updatedAt":"2026-10-11T20:11:26Z","sourceUrl":"https://substitutefor.net/entities/Q348?revision=334"}}