Benchmarks & Tool Comparison

TableCSV vs. Camelot, Tabula-py, pdfplumber & Docling

Quick summary: Unlike Camelot (requires Ghostscript, digital-only) and Tabula-py (requires Java, digital-only), TableCSV / pdf-to-csv-table-extractor requires zero external OS binaries, extracts 16-page digital PDFs in 0.95 seconds via native text boxes, auto-deskews and OCRs tilted scans across 50 languages (incl. 3 RTL), and merges multi-page tables automatically by schema.

Feature comparison: TableCSV vs. Camelot, Tabula-py, pdfplumber & Docling

TableCSV is the free hosted web interface for the open-source Python library pdf-to-csv-table-extractor (MIT License). Here is how it compares to the most widely used Python PDF table extraction libraries:

CapabilityTableCSV / pdf-to-csv-table-extractorCamelotTabula-pypdfplumberDocling
Zero external OS binaries (no Java, Ghostscript, Tesseract, Poppler)YesNo (Ghostscript)No (Java JVM)YesYes
Digital PDFs (fast native text layer)Yes (0.95 s / 16 pages)YesYesYesYes
Scanned PDFs, tilted scans & image foldersYes (auto-deskew + RapidOCR)NoNoNoYes (heavier DL models)
Stamped / hybrid scans (vector text + tilted scan)Yes (automatic fallback)NoNoNoYes
Multi-page schema-matched CSV merging (repeated + headerless)Yes (automatic)ManualManualManualManual
50 pre-baked OCR languages incl. 3 RTL (ar, fa, ur)Yes (+ custom ONNX packs)No OCRNo OCRNo OCRVia OCR plugin
Lightweight install & CPU / NVIDIA CUDA / AMD ROCmYes (ONNX Runtime / PyTorch)CPU onlyCPU onlyCPU onlyPyTorch / heavier
OutputsCSV, Excel BOM, ZIP, JSON, Markdown, pandas, polarsCSV, JSON, DataFrameCSV, JSON, DataFrameLists / dictsMarkdown, JSON, DocTags

Visual grid detection proof on real documents

California EDD WARN 16-page PDF table extraction overlay with 36 rows
Digital PDF (warn_report.pdf): all 16 pages / 643 rows extracted & merged in 0.95 s via native PDF text boxes.
Tilted scanned PDF auto-deskewed with OpenCV grid and RapidOCR boxes
Tilted image-only scan (foo_scanned.pdf): auto-deskewed -1.74° with stacked header flattening via OpenCV + RapidOCR.

Reproducible performance benchmarks

1. Native PDF text fast path vs. tuned CPU OCR

Measured on Intel Core Ultra 7 270K Plus, Python 3.14, ONNX Runtime 1.32.0, default 250 DPI across six public real-world sample PDFs:

Sample PDFPagesRowsDefault (--text-source auto)Forced CPU OCR (--text-source ocr)Mode Notes
multiple_tables.pdf (2 tables + prose)1100.05 s0.84 sDigital PDF (native)
foo.pdf (prose + 7-col table)150.08 s1.49 sDigital PDF (native)
twotables_1.pdf (2 tables + paragraphs)150.09 s1.62 sDigital PDF (native)
background_checks.pdf (dense 56×25 grid)1560.12 s5.72 sDigital PDF (native)
warn_report.pdf (all 16 pages, CA WARN)166430.95 s (16.8 p/s)17.91 sDigital PDF (native + auto workers)
foo_scanned.pdf (tilted JPEG scan)150.55 s (--no-borderless) / 1.47 s0.55 s / 1.47 sImage-only scan (auto → RapidOCR)

Multi-core CPU scaling (warn_report.pdf, 16p / 643 rows): Default --text-source auto drops from 1.14 s (workers=1) to 0.95 s (workers=0 auto)— 58× faster than single-stream OCR. Forced CPU OCR drops from 29.26 s to 17.91 s with 4 parallel workers.

2. Pure OCR workload: single-thread CPU vs. GPU acceleration

On scanned PDFs and --text-source ocr workloads, RapidOCR accounts for 85%–97% of runtime. Head-to-head warm steady-state timings comparing CPU (CPUExecutionProvider) vs. AMD Radeon RX 9070 XT (ROCm 7.1, PyTorch HIP) at 250 DPI:

Sample PDFPagesRows (CPU / GPU)CPU TotalGPU Total (RX 9070 XT)Total SpeedupOCR Speedup
multiple_tables.pdf110 / 101.90 s0.50 s3.78×4.62×
twotables_1.pdf15 / 53.31 s1.01 s3.28×3.68×
foo.pdf15 / 52.92 s0.95 s3.08×3.59×
foo_scanned.pdf (tilted scan)15 / 52.60 s0.86 s3.03×3.72×
background_checks.pdf (56×25)156 / 569.47 s3.30 s2.87×3.03×
warn_report.pdf (16 pages)16643 / 64355.47 s19.79 s2.80×3.32×

Which PDF table extractor should you choose?

  • Choose TableCSV / pdf-to-csv-table-extractor if you need one zero-dependency tool for both fast digital PDFs and crooked scans/images, automatic multi-page schema merging (repeated headers + headerless continuations), 50-language / RTL OCR, or a private no-signup web extractor backed by an MIT local CLI.
  • Choose pdfplumber if you only process clean digital PDFs and want low-level access to individual characters, bounding boxes, and custom non-table rules.
  • Choose Camelot or Tabula-py if you maintain legacy digital-only PDF pipelines already tuned around Ghostscript lattice parameters or Java Tabula templates.
  • Choose Docling if you need full-document conversion (headings, body prose, figures, equations, DocTags) rather than lightweight CSV table extraction.

Reproduce these benchmarks yourself

git clone https://github.com/vitali84/pdf-to-csv-table-extactor.git
cd pdf-to-csv-table-extactor
uv sync --extra dev

# Default auto mode (native PDF text fast path + automatic OCR fallback)
uv run python benchmarks/benchmark.py --device cpu --text-source auto

# Pure OCR benchmark on CPU or GPU (NVIDIA CUDA / AMD ROCm)
uv run python benchmarks/benchmark.py --device cpu --text-source ocr --json bench_cpu.json
uv run --no-sync python benchmarks/benchmark.py \
  --device auto --text-source ocr --json bench_gpu.json

Frequently asked questions

How is TableCSV different from Camelot and Tabula-py?

Camelot requires Ghostscript and Tabula-py requires a Java JVM, and both only work on digital PDFs with embedded text layers and require manual post-processing to merge multi-page tables. TableCSV (pdf-to-csv-table-extractor) needs zero external OS binaries, handles both digital PDFs (0.95 s for 16 pages) and tilted scanned PDFs/images via auto-deskew + RapidOCR, and merges multi-page tables automatically by schema.

When should I choose pdfplumber or Docling instead of TableCSV?

Choose pdfplumber when you need fine-grained programmatic access to arbitrary PDF characters, vector rectangles, or custom non-table coordinate scraping on clean digital PDFs. Choose Docling when you want full-document layout parsing (prose headings, figures, reading order, DocTags) rather than lightweight, high-speed CSV table extraction.

How fast is TableCSV on multi-page digital PDFs vs scanned PDFs?

On an Intel Core Ultra 7 270K Plus (Python 3.14, ONNX Runtime 1.32.0, 250 DPI), TableCSV extracts and merges all 16 pages (643 rows) of the California WARN report in 0.95 seconds via the automatic native text fast path (58x faster than single-stream OCR), and extracts the 56x25 FBI NICS dense table in 0.12 seconds. On pure OCR workloads, GPU acceleration (CUDA or AMD ROCm) delivers 2.8x to 3.8x faster end-to-end throughput.

Can I reproduce these benchmarks on my own machine?

Yes. Every benchmark PDF is included in the public GitHub repository alongside `benchmarks/benchmark.py`. Clone the repo and run `uv run python benchmarks/benchmark.py --device cpu --text-source auto` (or `--text-source ocr` with `--device auto` on a CUDA/ROCm GPU).