Python-native PDF toolkit
PDFs, with Python ergonomics and a Rust core.
Edit, render, extract and finish PDFs through one familiar API—without heavyweight runtime dependencies.
pip install pylopdf
- MIT licensed
- 5–6 MB wheels
- No mandatory Python dependencies
- Python 3.10–3.14
612 × 792 pt
Edit precisely
Merge, select, annotate, fill forms and preserve the structure that matters.
↗Render faithfully
Turn pages into dependable PNG or SVG output with a compact native engine.
↗Extract meaning
Read text, words, blocks, geometry and invisible OCR layers through one API.
↗Useful constraints, visible evidence
Small enough for deployment. Complete enough for real workflows.
pylopdf combines lopdf for editing, hayro for rendering and extraction, and krilla with HarfRust for generated text and form appearances.
5–6 MB
Published v0.10 wheel range, suited to size-constrained environments such as AWS Lambda.
None
Mandatory Python dependencies. Compiled Rust components ship in the wheel.
3.10–3.14
A single abi3 wheel line covers five Python generations.
MIT
A permissive license for open-source and commercial products.
Deliberate scope
A focused PDF core that works with the Python ecosystem.
The project publishes reproducible benchmarks—including losses—and uses established tools instead of rebuilding adjacent domains.
Inside pylopdf
- Page management, metadata, outlines and encryption
- Positioned text extraction, search and Markdown conversion
- PNG/SVG rendering, images, annotations and OCR text layers
- AcroForm filling, attachments and page labels