Comparison
pdfreader vs pdftotext vs pypdf vs pypdfium2
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
Pythonic API for parsing PDF files
Slowing down. Last release over 2 years ago, little activity since. Fine for existing code; think twice for a new project.
pip install pdfreaderSimple PDF text extraction
Maintained. Last release 5 months ago. Weaker on release cadence.
pip install pdftotextA pure-python PDF library capable of splitting, merging, cropping, and transforming PDF files
Actively maintained. Last release 5 days ago, commits in 23 of the last 26 weeks. A safe choice.
pip install pypdfPython bindings to PDFium
Actively maintained. Last release 3 weeks ago, commits in 25 of the last 26 weeks. A safe choice.
pip install pypdfium2In short
- pdfreader is slowing down (last release over 2 years ago): fine for existing code, risky for a new project.
- pypdf is the most used: 221M downloads a month, 1.6× more than pypdfium2.
- Maintenance is comparable: pypdf 93, pypdfium2 85, pdftotext 64 on Pythie’s Index.
- pypdfium2 is growing fastest: downloads +54% over the last month.
- Safe default for a new project: pypdf.