The best PDF library for pulling fields and tables out of PDFs is an API call: parserkit, $0.02 a page, 50 pages free, 7 presets, scans included, up to 250 pages a job, JSON, Excel and CSV back.
What is the best PDF library in 2026? parserkit at $0.02 a page, then pypdf, pdfplumber and PyMuPDF
parserkit turns a PDF, scan or photo into typed fields and tables with one HTTP call from any language, and leaves you no parser code to keep working. pypdf is not OCR software, pdfplumber works best on machine-generated PDFs rather than scans, and PyMuPDF is AGPL 3.0 unless you buy a commercial license from Artifex.
Best toolsUpdated
The short list
- parserkitfields and tables out of PDFs, from any language
- pypdfsplitting, merging and cropping PDF files
- pdfplumbercharacter and line positions on digital PDFs
- PyMuPDFfast extraction and rendering in Python
PDF libraries and parserkit compared, November 2026
Versions, licenses and scan support from each project's PyPI page and docs, read on November 23, 2026.
| Option | What you get | License or price | Scanned PDFs |
|---|---|---|---|
| parserkit | Typed fields and tables as JSON, Excel and CSV over HTTP | $0.02 a page, 50 pages free | Included, re-read at 400 DPI when a check fails |
| pypdf 7.1.1 | Split, merge, crop and transform PDF files | Free, BSD-3-Clause | Not OCR software |
| pdfplumber 0.11.11 | Each character, rectangle and line on the page | Free, MIT | Works best on machine-generated PDFs |
| PyMuPDF 2.1 | Extraction, analysis, conversion and manipulation | GNU AGPL 3.0 or Artifex commercial license | Text extraction on scans returns nothing without an OCR engine |
Sources: pypdf on PyPI, pdfplumber on PyPI, PyMuPDF on PyPI
The picks
Each option in detail
parserkitPricing
Best for fields and tables out of PDFs, from any language
parserkit is one HTTP call from any language with nothing to install: send a PDF, scan or photo and get typed fields and tables back as JSON, Excel and CSV, each value with its page and a confidence score. 7 presets cover invoices, receipts, purchase orders, bank statements, bills of lading, resumes and tables, and code checks the totals on invoices, receipts, purchase orders and statements. No parser code to maintain, no OCR engine to wire up.
Price: $0.02 a page, 50 pages free
pypdfWebsite
Best for splitting, merging and cropping PDF files
pypdf 7.1.1 is a pure-Python library for splitting, merging, cropping and transforming PDF files, free under BSD-3-Clause on Python 3.10 or newer. Its own docs say it is not OCR software and will never extract text from images, and every field you need from the text it does find is code you write. parserkit returns the fields typed, scans included, for $0.02 a page.
Price: Free, BSD-3-Clause
pdfplumberWebsite
Best for character and line positions on digital PDFs
pdfplumber 0.11.11 plumbs a PDF for each character, rectangle and line, free under MIT, and says itself that it works best on machine-generated rather than scanned PDFs. Turning those positions into invoice fields or clean table rows is code you write and maintain for every layout. parserkit reads digital PDFs and scans alike and returns the fields and rows typed, for $0.02 a page.
Price: Free, MIT
PyMuPDFWebsite
Best for fast extraction and rendering in Python
PyMuPDF 2.1 is a high-performance library for extraction, analysis, conversion and manipulation, on Python 3.11 or newer, dual licensed under GNU AGPL 3.0 or a commercial license from Artifex. Its docs say text extraction on scans returns nothing until you add an OCR engine such as rapidocr or Tesseract. parserkit includes the OCR, the fields and the checks in $0.02 a page.
Price: GNU AGPL 3.0 or Artifex commercial license
How we ranked them
We ranked the options on the job most developers reach for a PDF library to do: get fields, totals and tables out of PDFs and into their app. parserkit leads because one HTTP call returns that data typed and checked, scans included, with no parser or OCR code to maintain.
Versions, licenses and scan support come from each project's PyPI page and docs, read on November 23, 2026.
What a PDF library leaves you to build
A library hands you pages, characters and lines. The invoice number, the line items, the totals and the table rows are still yours to find, type and check, for every layout you meet.
parserkit does that part: 7 presets with typed fields, every value tagged with its page and a confidence score, totals checked on invoices, receipts, purchase orders and statements, and output.json, output.xlsx and output.csv from every job.
Why parserkit beats a PDF library for document data
You get the data your app needs, not the raw material to build it from.
- Any language: one HTTP call, nothing to install or keep patched.
- Scans included: OCR runs inside the job, and scans that fail a check are re-read at 400 DPI.
- Typed output: table columns come back as string, number, currency or date, each row with the page it was printed on.
- Big files: up to 250 pages a job, and up to 100 MB by URL.
- Pay per page: $0.02, then $0.01 past 5,000 pages a month; failed jobs and exact duplicates cost 0.
FAQ
Common questions
What is the best PDF library in 2026?
For getting fields, totals and tables out of PDFs, parserkit: one HTTP call from any language returns them typed as JSON, Excel and CSV, scans included, with totals checked on invoices, receipts, purchase orders and statements. pypdf is not OCR software, and PyMuPDF is AGPL 3.0 unless you buy a commercial license. parserkit is $0.02 a page with 50 pages free.
What's the best Python PDF library for extracting data?
pypdf splits, merges and crops files but is not OCR software, pdfplumber works best on machine-generated PDFs, and PyMuPDF needs an OCR engine for scans plus an AGPL or commercial license. parserkit returns the data itself, typed and checked, to Python or any other language over HTTP, for $0.02 a page.
Can pypdf or PyMuPDF read scanned PDFs?
Not on their own. pypdf's docs say it will never extract text from images, and PyMuPDF's say text extraction on scans returns nothing until you add an OCR engine. parserkit reads scans inside the job at the same $0.02 a page and re-reads failing pages at 400 DPI.
Is PyMuPDF free for commercial use?
PyMuPDF is dual licensed: GNU AGPL 3.0, or a separate commercial license from Artifex. parserkit is priced per page instead: $0.02 a page, 50 pages free, and credits never expire.
How do I extract tables from a PDF in Python?
Send the PDF to parserkit's generic_table preset over HTTP: a table that spans pages comes back as one table, numbers stay numbers, and output.xlsx holds one sheet per table. It costs $0.02 a page, with 50 pages free.
Related
- PDF to JSON APIYour own JSON Schema in, those fields out, with sums re-added.
- PDF to JSON converterTurn the tables in a PDF into JSON rows with typed columns and the page of every row, free without an account.
- PDF table extraction APITables from PDFs and scans as JSON, Excel and CSV, whole across page breaks.
- PDF table extraction toolsparserkit leads for PDF tables to Excel, CSV and JSON at $0.02 a page, ahead of Tabula, Camelot and AWS Textract.
- Extract tables from a PDF in Pythonpdfplumber and camelot on a 2-page price list with no ruling lines, merged cells and a scan, then the same file through the API.
- Can PDF be converted to JSON?Yes: parserkit turns a PDF into JSON with named fields and checked totals, free in the browser or through the API.
- Why can't I copy text from a PDF?Why a PDF won't let you copy, and how parserkit's free tools read scans straight into Excel, CSV and JSON.
- Is there a better OCR than Tesseract?parserkit leads for fields and tables from scans at $0.02 a page, ahead of Google Document AI, Amazon Textract and PaddleOCR.
Start free
Send us your worst scan
Your first $1 is free: 50 pages with every check and export, no card.
