# pypdf

Pure\-Python library for manipulating PDF pages and extracting existing text and metadata\.

ID: Q555 · Revision: 602

Type: software · License: BSD\-3\-Clause[^license] · Status: active

Website: https://pypdf.readthedocs.io/



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\.[^home][^scope]

## Capabilities and substitutions

### Existing text extraction — limited

Extracts text streams, including existing OCR layers, but does not recognize characters in page images\.[^scope][^text]

Use case: Python PDF manipulation and text extraction · Platforms: Python 3\.9\+; optional dependencies vary by task · Region: Version, build and integration requirements apply

### Secure removal by cropping — unsupported

Changing the visible page box leaves cropped content recoverable\.[^crop]

Use case: Python PDF manipulation and text extraction · Platforms: Python 3\.9\+; optional dependencies vary by task · Region: Version, build and integration requirements apply

### PDF/A guarantees — unsupported

Documentation explicitly makes no PDF/A guarantees\.[^pdfa]

Use case: Python PDF manipulation and text extraction · Platforms: Python 3\.9\+; optional dependencies vary by task · Region: Version, build and integration requirements apply

### [Substitute for pikepdf](/pikepdf) — limited

Can cover page manipulation in Python with a pure\-Python implementation; API, rendering and archival requirements need separate evaluation\.[^home][^pdfa][^pike]

Use case: Python PDF manipulation and text extraction · Platforms: Python 3\.9\+; optional dependencies vary by task · Region: Version, build and integration requirements apply

## References

[^home]: [pypdf documentation](<https://pypdf.readthedocs.io/en/stable/>) — Library identity and page manipulation (vendor; retrieved 2026-10-07T12:31:32.153Z)

[^scope]: [Scope of pypdf](<https://pypdf.readthedocs.io/en/stable/meta/scope-of-pypdf.html>) — Library scope and excluded OCR, format conversion and layout roles (vendor; retrieved 2026-10-07T12:31:32.153Z)

[^license]: [pypdf license](<https://github.com/py-pdf/pypdf/blob/main/LICENSE>) — Three\-clause BSD terms (vendor; retrieved 2026-10-07T12:31:32.153Z)

[^text]: [pypdf text extraction](<https://pypdf.readthedocs.io/en/stable/user/extract-text.html>) — Text extraction limitations and memory requirements (vendor; retrieved 2026-10-07T12:31:32.153Z)

[^crop]: [pypdf cropping and transformation](<https://pypdf.readthedocs.io/en/stable/user/cropping-and-transforming.html>) — Crop boxes preserve hidden content; page versus content transformation (vendor; retrieved 2026-10-07T12:31:32.153Z)

[^install]: [pypdf installation](<https://pypdf.readthedocs.io/en/stable/user/installation.html>) — Python requirement and optional crypto/image dependencies (vendor; retrieved 2026-10-07T12:31:32.153Z)

[^pdfa]: [pypdf PDF/A limitations](<https://pypdf.readthedocs.io/en/stable/user/pdfa-compliance.html>) — No PDF/A guarantees (vendor; retrieved 2026-10-07T12:31:32.153Z)

[^pike]: [pikepdf documentation](<https://pikepdf.readthedocs.io/en/latest/>) — Native qpdf wrapper and manipulation scope (vendor; retrieved 2026-10-07T12:31:32.153Z)

Source revision: https://substitutefor.net/entities/Q555?revision=602
