{"schemaVersion":"1.0","record":{"label":"pypdf","description":"Pure-Python library for manipulating PDF pages and extracting existing text and metadata.","aliases":[],"kind":"software","website":"https://pypdf.readthedocs.io/","overview":"pypdf is a pure-Python library for manipulating existing PDF documents and extracting their text and metadata. It can split, combine, crop and transform pages, and provides programmatic access to other document features. It is a library for an application's processing logic rather than an interactive document viewer or an OCR engine.","license":"BSD-3-Clause","lifecycle":"active","example":false,"features":[{"name":"Existing text extraction","status":"limited","detail":"Extracts text streams, including existing OCR layers, but does not recognize characters in page images.","useCase":"Python PDF manipulation and text extraction","platforms":["Python 3.9+; optional dependencies vary by task"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://pypdf.readthedocs.io/en/stable/user/extract-text.html","locator":"Text extraction limitations and memory requirements","retrievedAt":"2026-10-07T12:31:32.153Z","kind":"vendor"},{"url":"https://pypdf.readthedocs.io/en/stable/meta/scope-of-pypdf.html","locator":"Library scope and excluded OCR, format conversion and layout roles","retrievedAt":"2026-10-07T12:31:32.153Z","kind":"vendor"}]},{"name":"Secure removal by cropping","status":"unsupported","detail":"Changing the visible page box leaves cropped content recoverable.","useCase":"Python PDF manipulation and text extraction","platforms":["Python 3.9+; optional dependencies vary by task"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://pypdf.readthedocs.io/en/stable/user/cropping-and-transforming.html","locator":"Crop boxes preserve hidden content; page versus content transformation","retrievedAt":"2026-10-07T12:31:32.153Z","kind":"vendor"}]},{"name":"PDF/A guarantees","status":"unsupported","detail":"Documentation explicitly makes no PDF/A guarantees.","useCase":"Python PDF manipulation and text extraction","platforms":["Python 3.9+; optional dependencies vary by task"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://pypdf.readthedocs.io/en/stable/user/pdfa-compliance.html","locator":"No PDF/A guarantees","retrievedAt":"2026-10-07T12:31:32.153Z","kind":"vendor"}]}],"alternatives":[],"slug":"pypdf","draftAlternatives":[{"targetSlug":"pikepdf","status":"limited","detail":"Can cover page manipulation in Python with a pure-Python implementation; API, rendering and archival requirements need separate evaluation.","useCase":"Python PDF manipulation and text extraction","platforms":["Python 3.9+; optional dependencies vary by task"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://pypdf.readthedocs.io/en/stable/","locator":"Library identity and page manipulation","retrievedAt":"2026-10-07T12:31:32.153Z","kind":"vendor"},{"url":"https://pikepdf.readthedocs.io/en/latest/","locator":"Native qpdf wrapper and manipulation scope","retrievedAt":"2026-10-07T12:31:32.153Z","kind":"vendor"},{"url":"https://pypdf.readthedocs.io/en/stable/user/pdfa-compliance.html","locator":"No PDF/A guarantees","retrievedAt":"2026-10-07T12:31:32.153Z","kind":"vendor"}]}],"evidence":[{"url":"https://pypdf.readthedocs.io/en/stable/","locator":"Library identity and page manipulation","retrievedAt":"2026-10-07T12:31:32.153Z","kind":"vendor"},{"url":"https://pypdf.readthedocs.io/en/stable/meta/scope-of-pypdf.html","locator":"Library scope and excluded OCR, format conversion and layout roles","retrievedAt":"2026-10-07T12:31:32.153Z","kind":"vendor"}],"document":{"version":1,"references":[{"url":"https://pypdf.readthedocs.io/en/stable/","locator":"Library identity and page manipulation","retrievedAt":"2026-10-07T12:31:32.153Z","id":"home","title":"pypdf documentation","kind":"vendor"},{"url":"https://pypdf.readthedocs.io/en/stable/meta/scope-of-pypdf.html","locator":"Library scope and excluded OCR, format conversion and layout roles","retrievedAt":"2026-10-07T12:31:32.153Z","id":"scope","title":"Scope of pypdf","kind":"vendor"},{"url":"https://github.com/py-pdf/pypdf/blob/main/LICENSE","locator":"Three-clause BSD terms","retrievedAt":"2026-10-07T12:31:32.153Z","id":"license","title":"pypdf license","kind":"vendor"},{"url":"https://pypdf.readthedocs.io/en/stable/user/extract-text.html","locator":"Text extraction limitations and memory requirements","retrievedAt":"2026-10-07T12:31:32.153Z","id":"text","title":"pypdf text extraction","kind":"vendor"},{"url":"https://pypdf.readthedocs.io/en/stable/user/cropping-and-transforming.html","locator":"Crop boxes preserve hidden content; page versus content transformation","retrievedAt":"2026-10-07T12:31:32.153Z","id":"crop","title":"pypdf cropping and transformation","kind":"vendor"},{"url":"https://pypdf.readthedocs.io/en/stable/user/installation.html","locator":"Python requirement and optional crypto/image dependencies","retrievedAt":"2026-10-07T12:31:32.153Z","id":"install","title":"pypdf installation","kind":"vendor"},{"url":"https://pypdf.readthedocs.io/en/stable/user/pdfa-compliance.html","locator":"No PDF/A guarantees","retrievedAt":"2026-10-07T12:31:32.153Z","id":"pdfa","title":"pypdf PDF/A limitations","kind":"vendor"},{"url":"https://pikepdf.readthedocs.io/en/latest/","locator":"Native qpdf wrapper and manipulation scope","retrievedAt":"2026-10-07T12:31:32.153Z","id":"pike","title":"pikepdf documentation","kind":"vendor"}],"overviewCitations":["home","scope"],"licenseCitations":["license"],"sections":[{"id":"workflow","heading":"Processing existing PDFs","paragraphs":[{"id":"workflow-detail","content":[{"text":"pypdf supports common page-processing operations without requiring an application to implement PDF syntax itself. Its stated scope includes manipulating documents, extracting data and handling encryption. Generating a designed report from scratch, converting HTML or word-processing files, and reliable replacement of arbitrary words are separate problems. A library substitution should be based on concrete transformations rather than the broad label PDF editing."}],"citations":["home","scope"]}]},{"id":"extraction","heading":"Text extraction and scanned pages","paragraphs":[{"id":"extraction-detail","content":[{"text":"The extraction API reads existing text information and offers layout-oriented output and visitor hooks. Scanned pages may contain only images, while an OCR-processed scan may carry a separate text layer that pypdf can read. It does not perform OCR or validate an OCR engine's recognition. Complex layouts also make reading order and coordinates difficult, and parsing a large content stream can consume substantially more memory than its stored file size suggests."}],"citations":["text"]}]},{"id":"geometry","heading":"Cropping and transformation","paragraphs":[{"id":"geometry-detail","content":[{"text":"Cropping adjusts the visible page box and can leave the hidden material in the file. It must not be used as a security redaction method. The transformation documentation also distinguishes rotating the page from transforming the coordinates of its contents, and separates changing page size from scaling the content. These distinctions matter in imposed layouts and overlays where a visually plausible result may still have unexpected clipping."}],"citations":["crop"]}]},{"id":"deployment","heading":"Dependencies and output assurances","paragraphs":[{"id":"deployment-detail","content":[{"text":"The installation guide lists Python 3.9 or later and a minimal base installation, with additional dependencies for AES encryption and image extraction. Calling the library pure Python should not be generalized into a promise that every optional workflow has no external components. The source uses BSD-3-Clause licensing. Separately, the documentation explicitly makes no PDF/A guarantees, so a successful write is not an archival-conformance certificate."}],"citations":["install","license","pdfa"]}]},{"id":"comparison","heading":"Substitution considerations","paragraphs":[{"id":"comparison-detail","content":[{"text":"pypdf can substitute for "},{"text":"pikepdf","targetSlug":"pikepdf"},{"text":" for selected Python page-manipulation tasks. pikepdf wraps a native C++ engine, so deployment and API choices differ. A migration should retain representative input and output tests for the operations actually used, especially where forms, metadata or archival requirements matter. This research establishes documented overlap, not identical behavior or measured performance."}],"citations":["home","pike","pdfa"]}]}]},"id":"Q555","revision":602,"updatedAt":"2026-10-12T22:36:07Z","sourceUrl":"https://substitutefor.net/entities/Q555?revision=602"}}