PDF Table Extractor (Text + OCR)
Pricing
from $8.00 / 1,000 table extracteds
PDF Table Extractor (Text + OCR)
Extract tables from any PDF into clean rows, JSON records and CSV. Works on digital PDFs via text positions and on scanned PDFs via built-in OCR. No external APIs.
Pricing
from $8.00 / 1,000 table extracteds
Rating
0.0
(0)
Developer
Camp8 fr0
Maintained by CommunityActor stats
0
Bookmarked
1
Total users
0
Monthly active users
4 days ago
Last modified
Categories
Features
Share
PDF Table Extractor – Convert PDF Tables to JSON, CSV & Excel-ready Rows (with OCR)
PDF Table Extractor finds every table in a PDF and turns it into clean, structured data: raw rows, JSON records keyed by the column headers, and a ready-to-save CSV. It works on digital PDFs (bank statements, financial reports, price lists, government statistics) and on scanned PDFs thanks to built-in OCR. Everything runs inside the Actor. No external APIs, no per-page fees to third parties, and your documents never leave Apify.
What does PDF Table Extractor do?
- 📄 Detects tables automatically on every page, including several tables per page.
- 🧭 Reconstructs columns from text positions (whitespace-river clustering), so it works on tables without ruling lines, which is where most PDF-to-Excel tools break.
- 🏷️ Detects headers, including multi-line headers (e.g. "Decreased" / "Accel" becomes
Decreased Accel), and returns JSON records keyed by column name. - 🔁 Merges wrapped cells (multi-line descriptions) back into a single row.
- 🔍 OCR fallback for scanned PDFs: pages without a text layer are rendered at 300 DPI, table ruling lines are removed, and the text is read with Tesseract (100+ languages).
- 🔢 Keeps numbers intact:
1,234.56,1.234,56,1 234,56, percentages, negatives in parentheses. - 🌐 HTTP API (Standby mode): call it like a REST endpoint with GET or POST and get JSON back in one request.
Use cases
- Extract financial statements, bank statements and annual report tables into spreadsheets
- Convert price lists and product catalogs from suppliers into a database
- Pull government and statistical tables (census, health, budgets) for analysis
- Digitize scanned archives with tables
- Feed RAG / LLM pipelines with properly structured tables instead of garbled text
- Automate accounts-payable and procurement document flows
How to use it
- Click Try for free.
- Paste one or more PDF URLs.
- (Optional) Choose pages (
1-3,7), OCR mode and OCR language. - Click Start. Each table appears as a row in the Tables view. Export to JSON, CSV, Excel or HTML, or use the API.
Call it as an HTTP API (Standby mode)
# GET with query parameterscurl "https://<your-standby-url>/?pdfUrls=https://example.com/report.pdf&pages=1-5" \-H "Authorization: Bearer <APIFY_TOKEN>"# POST with a JSON body (same fields as the Actor input)curl -X POST "https://<your-standby-url>/" \-H "Authorization: Bearer <APIFY_TOKEN>" -H "Content-Type: application/json" \-d '{"pdfUrls":["https://example.com/report.pdf"],"ocrMode":"auto"}'
Response: { "count": 3, "items": [ ...tables... ] }
You can also run it through the Apify API (run-sync-get-dataset-items), the Apify MCP server, Make, Zapier, n8n and other integrations. AI agents can pay per call with x402 (USDC) through Apify's agentic payments, without needing an Apify account.
Input example
{"pdfUrls": ["https://raw.githubusercontent.com/camelot-dev/camelot/master/docs/_static/pdf/foo.pdf"],"pages": "1-10","ocrMode": "auto","ocrLanguage": "eng","minRows": 3,"minColumns": 2,"includeCsv": true}
| Field | Description |
|---|---|
pdfUrls | Direct links to PDF files |
pages | Page selection like 1-3,5,10- (empty = all) |
ocrMode | auto (OCR only scanned pages), always, never |
ocrLanguage | Tesseract code(s): eng, fra, deu, spa, eng+fra… |
minRows / minColumns | Filter out small false-positive "tables" |
maxPagesPerPdf | Safety limit per document |
includeCsv | Add a CSV string per table |
password | For encrypted PDFs |
Output example
{"pdfUrl": "https://raw.githubusercontent.com/camelot-dev/camelot/master/docs/_static/pdf/foo.pdf","page": 1,"tableIndex": 1,"method": "text","rowCount": 8,"columnCount": 7,"header": ["Cycle Name", "KI (1/km)", "Distance (mi)", "Improved Speed", "Decreased Accel", "Eliminate Stops", "Decreased Idle"],"headerRowCount": 3,"records": [{ "Cycle Name": "2012_2", "KI (1/km)": "3.30", "Distance (mi)": "1.3", "Improved Speed": "5.9%", "Decreased Accel": "9.5%", "Eliminate Stops": "29.2%", "Decreased Idle": "17.4%" }],"rows": [["Cycle", "KI", "Distance", "", "", "", ""], ["2012_2", "3.30", "1.3", "5.9%", "9.5%", "29.2%", "17.4%"]],"csv": "Cycle,KI,Distance,,,,\n...","bbox": { "x0": 125.3, "x1": 489.1, "top": 388.2, "bottom": 512.7 }}
Pricing
This Actor uses pay-per-event pricing. You only pay for results:
| Event | Price |
|---|---|
| Table extracted | $8 per 1,000 tables ($0.008 each) |
| OCR page (scanned pages only) | $12 per 1,000 pages ($0.012 each) |
Digital PDFs never trigger OCR charges in auto mode. Apify platform usage (compute) is billed separately and is typically a fraction of a cent per document. Set Maximum cost per run to cap your spend; the Actor stops cleanly when the limit is reached.
FAQ
Does it work with scanned PDFs?
Yes. In auto mode, pages with no text layer are OCR'd automatically. Use always for PDFs with a broken or garbage text layer.
Which languages does OCR support?
All Tesseract languages, including English, French, German, Spanish, Italian, Portuguese, Dutch, Arabic, Chinese and Japanese. Combine them with +, e.g. eng+fra.
What about tables without borders/lines? That's the main strength of this Actor: columns are reconstructed from text positions, not from drawn lines.
How accurate is it? Digital PDFs with clear column alignment give near-perfect results. Very dense tables whose columns almost touch can occasionally merge two columns. OCR accuracy depends on scan quality (300 DPI or better recommended).
How big can PDFs be?
Up to 150 MB per file. Use maxPagesPerPdf and pages to control large documents.
Is my data private? Files are processed inside your Apify run. Nothing is sent to third-party services.
Can I get Excel?
Yes. Export the dataset as XLSX or CSV from the Console or API, or use the per-table csv field.