Camelot vs Tabula for PDF tables (and a no-code option)

Both are free, open source and good. They differ in setup, in how they find columns, and in how much tuning they need per layout. Here's how to choose, with code for each.

PDF to Excel, Markdown & Text API: $3 per 1,000 PDFs (OCR pages $5 per 1,000). Apify's free plan gives you $5 of credit every month, which covers about 1,600 PDFs a month. No start fee; failed items are free.

Try PDF to Excel, Markdown & Text API

At a glance

Camelottabula-pyPandapi PDF API
LanguagePythonPython wrapper around Tabula (Java)HTTP API, any language or no code
Setuppip install camelot-py (plus Ghostscript or pdfium backend)pip install tabula-py, needs JavaNone
Ruled tableslattice mode, very goodlattice mode, goodYes
Borderless tablesstream mode, often needs column hintsstream mode, good on simple layoutsYes, columns from text alignment
Table across pagesSeparate tables; join yourselfSeparate tables; join yourselfJoined automatically
Wrapped cell textExtra rowsExtra rowsMerged into the cell
Scanned PDFsNoNoOCR text (tables on scans not detected yet)
Accuracy reportYes (parsing report, whitespace)NoMethod per table (ruled/borderless)
CostFreeFree$3 per 1,000 PDFs

Camelot

import camelot
tables = camelot.read_pdf("report.pdf", pages="1-end", flavor="lattice")  # or "stream"
print(tables[0].parsing_report)
tables.export("report.xlsx", f="excel")

Pick Camelot when you can look at the output and tune it: table_areas, columns and row_tol fix most stream-mode problems.

tabula-py

import tabula
dfs = tabula.read_pdf("report.pdf", pages="all", lattice=True)  # or stream=True
tabula.convert_into("report.pdf", "report.csv", output_format="csv", pages="all")

Pick tabula-py when Java is already there and the tables are simple. The Tabula desktop app is handy for drawing table areas by hand.

When neither is worth the time

When the PDFs come from many different sources (bank statements from ten banks, supplier invoices), each new layout means new tuning. A hosted API that handles borderless tables, page joins and numbers is less work:

curl -X POST "https://api.apify.com/v2/acts/blueberry_rainstorm~pdf-to-text-markdown/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "urls": [
    {
      "url": "https://example.com/statement.pdf"
    }
  ],
  "spreadsheetOutput": "xlsx",
  "mergeMultiPageTables": true
}'

More in extract tables from PDF to Excel.

Sources, checked 21 November 2026: Camelot docs, tabula-py docs. Prices change; check their pages before you buy.

Questions

Is Camelot better than Tabula?

On ruled tables they're close. Camelot gives you more control and a parsing report, which helps on borderless tables; tabula-py is simpler if Java is installed. Neither joins tables across pages.

Does Camelot need Java?

No. Camelot is pure Python with a Ghostscript or pdfium backend. tabula-py needs Java because it wraps Tabula.

Can either read scanned PDFs?

No. Both need a text layer. Run OCR first (for example OCRmyPDF), or use an API with OCR.

Is there a no-code option?

Yes. The Pandapi PDF API takes PDF links and returns Excel or CSV, $3 per 1,000 PDFs, with Apify's free credit covering about 1,600 PDFs a month.

PDF to Excel, Markdown & Text API: $3 per 1,000 PDFs (OCR pages $5 per 1,000). Apify's free plan gives you $5 of credit every month, which covers about 1,600 PDFs a month. No start fee; failed items are free.

Try PDF to Excel, Markdown & Text API

Related guides

Free tools for the same job