PDF Text Extractor – Text, Markdown, Tables & OCR
Pricing
from $4.00 / 1,000 pdf processeds
PDF Text Extractor – Text, Markdown, Tables & OCR
Extract text, Markdown and tables (CSV) from your PDFs. OCR for scanned PDFs in English, Dutch, French, German, Spanish, Italian, Portuguese. No API key. From $4 per 1,000 PDFs.
Pricing
from $4.00 / 1,000 pdf processeds
Rating
0.0
(0)
Developer
Tom J
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
a month ago
Last modified
Categories
Features
Share
PDF text extractor for your own files: convert PDF to text, clean Markdown and tables (CSV) in one run. Scanned pages are read with OCR (Tesseract) in English, Dutch, French, German, Spanish, Italian and Portuguese. Built for document pipelines, RAG and LLM workflows. No API key, nothing sent to other services. From $4 per 1,000 PDFs.
What you can do with it
- Convert PDF to Markdown for RAG and LLMs: headings, paragraphs and tables as Markdown, pages separated by
---. - Extract tables to CSV: every ruled table as rows and as a CSV file.
- OCR scanned PDFs in 7 languages, automatically only on pages without a text layer.
- Process PDFs in bulk from links, Google Drive or Dropbox share links, uploads, base64 or another Actor's dataset.
- Read metadata: title, author, creation date, producer, page and word counts.
How to convert PDF to text in 3 steps
- Add PDFs: PDF links, Upload PDFs,
base64Pdfs(API) or a dataset from another Actor. - Choose what to extract (text, Markdown, tables, text per page) and the OCR languages.
- Click Start. Each PDF becomes one row, with links to .txt, .md and a zip of CSV tables.
Where the PDFs can come from
| Source | How |
|---|---|
| Direct link | urls |
| Google Drive, Dropbox, OneDrive, SharePoint | Share link in urls, set to "Anyone with the link" |
| Your computer | uploadedFiles |
| API | base64Pdfs: [{"name": "file.pdf", "data": "<base64>"}], max 25 MB each |
| Another Actor | datasetId + urlField (e.g. url or document.pdfUrl) |
Web pages are not supported; WeTransfer page links need the direct download link.
Input
| Field | Meaning | Default |
|---|---|---|
outputs | Text, Markdown, tables, text per page | text, Markdown, tables |
ocr | auto (pages with < 40 characters of text), force, off | auto |
ocrLanguages | Languages in the scans (fewer = faster, more accurate) | eng, nld, fra, deu |
pdfPassword | Tried on every file; never logged | — |
maxPages | Pages after this are skipped | 200 (max 1,000) |
maxOcrPagesPerPdf | Upper limit for paid OCR pages per PDF | 50 (max 500) |
maxPdfSizeMb | Larger files are not downloaded or charged | 100 (max 500) |
timeoutPerPdfSecs | Pages read so far are kept | 120 (max 1,800) |
Output
{"fileName": "report.pdf","status": "text_layer","pageCount": 2,"textPages": 2,"ocrPages": 0,"wordCount": 90,"preview": "Quarterly overview\nSales by region…","fullText": "…","markdown": "…","tables": [{ "page": 1, "index": 0, "rows": [["Region", "Q3"]], "csv": "Region,Q3\n…" }],"tableCount": 2,"metadata": { "title": "Quarterly overview (test)", "author": "Test Author", "created": "2026-10-24T15:20:40+00:00" },"files": { "txt": "…/001-report.txt", "md": "…/001-report.md", "tables_csv": "…/001-report-tables.zip" },"charged": { "pdf": 1, "ocrPages": 0, "tables": 2 }}
The run summary (OUTPUT) lists counts per status, pages, OCR pages, tables and what was charged. Export as JSON, CSV, Excel or XML.
| Status | Meaning | Charged |
|---|---|---|
text_layer / ocr / mixed | Read from text layer, OCR, or both | yes |
partial | Page, OCR or time limit reached (statusMessage says why) | for what was read |
no_text, encrypted, too_large, download_failed, unsupported_source, failed | Nothing usable | no |
PDF to Markdown for RAG and LLM pipelines
Markdown headings come from font sizes, tables become Markdown tables and two-column pages are read column by column. Chunk the .md file straight into your vector database or pass it to an LLM.
Scanned PDF OCR in 7 languages
English, Dutch, French, German, Spanish, Italian and Portuguese. Clean printed pages read well; faint copies, photos at an angle and handwriting less so.
How much does PDF extraction cost?
| Event | Price |
|---|---|
| PDF processed | $0.004 |
| OCR page | $0.012 |
| Table extracted | $0.002 |
Examples: 1,000 text PDFs without tables = $4. 1,000 PDFs with 2 scanned pages each = $4 + $24 = $28.
What you are not charged for
Files that could not be downloaded, unsupported links, files over the size limit, password-protected files without the right password, damaged files and PDFs without any text. When your maximum cost per run is reached, the Actor stops cleanly and lists the remaining PDFs in OUTPUT.
Integrate with any app
from apify_client import ApifyClientclient = ApifyClient("<YOUR_APIFY_TOKEN>")run = client.actor("olliolli/pdf-text-extractor-ocr").call(run_input={"urls": ["https://example.com/report.pdf"], "outputs": ["markdown", "tables"]})for row in client.dataset(run["defaultDatasetId"]).iterate_items():print(row["status"], row["files"]["md"])
In n8n, Make or Zapier, run the Actor and fetch files.md or files.txt from each row. To chain after another Actor, pick its dataset in the dataset field. Through Apify's MCP server, AI assistants can call it as a PDF reader.
Privacy
Your files are downloaded into the run, processed there and deleted when the run ends. Text and files are stored only in your own Apify run storage. Nothing is sent to other services. Passwords are never logged or stored.
Good to know
- Tables are detected when they have ruling lines; tables without lines come out as text, and tables on scanned pages as OCR text.
- Up to 1,000 pages, 500 MB and 30 minutes per PDF (you set the limits).
- This Actor does not extract invoice fields.
FAQ
Can it OCR scanned PDFs? Yes, automatically on pages without a text layer, or on every page with ocr: force.
Which OCR languages are supported? English, Dutch, French, German, Spanish, Italian, Portuguese.
Can I upload a PDF instead of a link? Yes, with Upload PDFs, or as base64 through the API.
Does it extract tables to CSV? Yes, ruled tables become rows and CSV files (zipped per PDF).
Is my PDF stored or shared? No. It is processed inside the run, deleted afterwards and never sent elsewhere.
What about password-protected PDFs? Add the password in pdfPassword. Without it the row is encrypted and free.
Need help?
Open an issue on the Issues tab.