My Actor
Pricing
$30.00 / 1,000 pdf table extractions
My Actor
Extract tables from PDFs into structured CSV/JSON using pdfplumber (MIT). Batch many PDF URLs, isolate per-file errors, and charge only for PDFs that actually yield tables. Built for data pipelines, RAG ingestion and spreadsheet QA.
Pricing
$30.00 / 1,000 pdf table extractions
Rating
0.0
(0)
Developer
ou 欧阳
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
8 days ago
Last modified
Categories
Features
Share
PDF Table Extractor — turn PDF tables into structured CSV / JSON
Pull the tables out of PDF reports, invoices, financial statements and papers and get them back as structured, analysis-ready data — one clean record per PDF.
Point this Actor at a list of PDF URLs and it returns, for each file, the full set of extracted tables as CSV text and/or a structured JSON array. Built for data pipelines, spreadsheet QA, and RAG ingestion where you need the numbers, not the page layout.
No format juggling. No copy-paste. No half-parsed grids. One call, structured output.
Why this exists
Every data team hits the same wall: the numbers live inside a 40-page PDF earnings report or a scanned invoice, and the only way to get them into a spreadsheet is manual copy-paste. PDF byte streams are not data — they are pictures of data.
This Actor does the ingestion step for you, using the same table-extraction engine behind thousands of data pipelines — pdfplumber — battle-tested across millions of PDFs.
Typical jobs it saves you from:
- Pulling quarterly figures out of a pile of PDF earnings reports
- Turning invoice tables into CSV for accounting reconciliation
- Converting research-paper result tables into JSON for analysis
- Building a structured table feed for a RAG / vector search pipeline
What you get
One dataset record per input PDF:
{"source": "https://example.com/reports/q3-earnings.pdf","outputFormat": "both","numTables": 2,"csv": "# page 1 table 1\nSegment,Revenue (B),YoY\nCloud,4.2,+18%\n...","tables": [{ "page": 1, "index": 1, "rows": [["Segment","Revenue (B)","YoY"],["Cloud","4.2","+18%"]] }],"status": "ok","error": null}
Failed or table-less PDFs never kill the batch — they come back with
status: "empty" / "failed" and a human-readable error message, while every
other PDF still extracts. You are only charged for PDFs that actually yield
tables.
Input
| Field | Type | Default | Description |
|---|---|---|---|
pdfUrls | array of strings | [] | Direct HTTP/HTTPS links to PDF files (reports, invoices, papers). |
outputFormat | csv | json | both | both | csv = one concatenated CSV; json = structured table array; both = both. |
password | string | "" | Open password for encrypted PDFs. Leave blank for unprotected files. |
At least one pdfUrls entry must be provided.
Example input
{"pdfUrls": ["https://example.com/reports/q3-earnings.pdf","https://example.com/invoices/inv-1024.pdf"],"outputFormat": "both"}
Output fields
source— the PDF URL you submitted, echoed back so you can join results.outputFormat— the requested output format.numTables— how many tables were extracted from this PDF.csv— concatenated CSV text of every table (empty when format isjson).tables— structured array; each item haspage,indexandrows(a list of cell strings). This is the canonical, machine-readable form.status—ok(billed),empty(no tables) orfailed(never billed).error—nullon success; a short diagnostic message otherwise.
Supported inputs
| Category | Notes |
|---|---|
| Text-based PDF | Native support — tables extracted from the embedded text layer. |
| Encrypted PDF | Provide password; extracted after unlocking. |
| Multi-page / multi-table | Every table on every page is captured with its page & index. |
| Scanned / image-only PDF | Not supported — pdfplumber reads the text layer only; use an OCR-backed tool (Docling / PaddleOCR) instead. |
Pricing
Pay per successful PDF — $0.03 per PDF that yields at least one table.
- PDFs with no tables (
empty) and failed PDFs (failed) are never charged. - You can cap spend per run in the Apify Console.
- No subscription, no minimum, no per-minute compute charge on top.
A 100-PDF extraction job with tables in ~70 of them costs about $2.10.
How to use it from code
Using the Apify API:
curl -X POST "https://api.apify.com/v2/acts/YOUR_USERNAME~pdf-table-extractor/runs?token=YOUR_TOKEN" \-H "Content-Type: application/json" \-d '{"pdfUrls":["https://example.com/report.pdf"],"outputFormat":"both"}'
Then read the dataset:
$curl "https://api.apify.com/v2/datasets/DATASET_ID/items?token=YOUR_TOKEN&format=json"
Or from the Apify Python client:
from apify_client import ApifyClientclient = ApifyClient("YOUR_TOKEN")run = client.actor("YOUR_USERNAME~pdf-table-extractor").call(run_input={"pdfUrls": ["https://example.com/report.pdf"], "outputFormat": "both"})for item in client.dataset(run["defaultDatasetId"]).iterate_items():print(item["source"], item["numTables"])
Common workflows
Financial ingestion. Drop a list of earnings-PDF URLs into pdfUrls, run once,
pipe the tables field straight into your spreadsheet or database.
Invoice reconciliation. Convert a folder of invoice PDFs into CSV, diff against your ledger to catch mismatches.
Research mining. Turn a stack of paper result tables into JSON, then load them into any analysis notebook without manual entry.
RAG table feed. Extract tables as structured JSON and chunk them into your vector store with full page/index traceability.
Limitations (read before you rely on it)
- Image-only / scanned PDFs are not supported — pdfplumber reads the text layer, not pixels. For scans, use an OCR-backed extractor.
- Very complex tables (deeply nested, heavily merged cells, rotated text) may
need light post-processing; the
page/indexof every table is preserved so you can target fixes. - Paywalled or login-gated PDFs will fail — this Actor fetches publicly accessible URLs only.
- Encrypted PDFs need
password— otherwise they are reported asfailed.
Built on open source
This Actor is a derivative work of pdfplumber (MIT License).
- Upstream: https://github.com/jsvine/pdfplumber
- Original author: Jeremy Singer-Vine
- License: MIT — full text included in
LICENSE
Attribution is retained as required by the MIT License. The value added here is the packaging: batch URL input, per-file error isolation, structured dataset output, CSV/JSON dual format and pay-per-success billing.


