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

  1. parserkitfields and tables out of PDFs, from any language
  2. pypdfsplitting, merging and cropping PDF files
  3. pdfplumbercharacter and line positions on digital PDFs
  4. 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.

PDF libraries and parserkit compared, November 2026
OptionWhat you getLicense or priceScanned PDFs
parserkitTyped fields and tables as JSON, Excel and CSV over HTTP$0.02 a page, 50 pages freeIncluded, re-read at 400 DPI when a check fails
pypdf 7.1.1Split, merge, crop and transform PDF filesFree, BSD-3-ClauseNot OCR software
pdfplumber 0.11.11Each character, rectangle and line on the pageFree, MITWorks best on machine-generated PDFs
PyMuPDF 2.1Extraction, analysis, conversion and manipulationGNU AGPL 3.0 or Artifex commercial licenseText 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

  1. 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

  2. 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

  3. 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

  4. 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.

Start free

Send us your worst scan

Your first $1 is free: 50 pages with every check and export, no card.

Crumpled receipts and a printed bank statement with one line marked in green highlighter, on a dark desk