qpdf
A Python library for reading and writing PDF, powered by QPDF
PDF CLI pipeline: merge, split, crop, rotate, compress, extract images, add text and more. Modern pdftk replacement, powered by pikepdf/qpdf.
Local-first PDF compressor: shrink PDFs below a target size, fully offline — no uploads, no account, no network calls. CLI + Python library.