PDF Text Extractor – Text, Markdown, Tables & OCR avatar

PDF Text Extractor – Text, Markdown, Tables & OCR

Pricing

from $4.00 / 1,000 pdf processeds

Go to Apify Store
PDF Text Extractor – Text, Markdown, Tables & OCR

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

Tom J

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

a month ago

Last modified

Categories

Features

Limited permissions

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

  1. Add PDFs: PDF links, Upload PDFs, base64Pdfs (API) or a dataset from another Actor.
  2. Choose what to extract (text, Markdown, tables, text per page) and the OCR languages.
  3. Click Start. Each PDF becomes one row, with links to .txt, .md and a zip of CSV tables.

Where the PDFs can come from

SourceHow
Direct linkurls
Google Drive, Dropbox, OneDrive, SharePointShare link in urls, set to "Anyone with the link"
Your computeruploadedFiles
APIbase64Pdfs: [{"name": "file.pdf", "data": "<base64>"}], max 25 MB each
Another ActordatasetId + urlField (e.g. url or document.pdfUrl)

Web pages are not supported; WeTransfer page links need the direct download link.

Input

FieldMeaningDefault
outputsText, Markdown, tables, text per pagetext, Markdown, tables
ocrauto (pages with < 40 characters of text), force, offauto
ocrLanguagesLanguages in the scans (fewer = faster, more accurate)eng, nld, fra, deu
pdfPasswordTried on every file; never logged—
maxPagesPages after this are skipped200 (max 1,000)
maxOcrPagesPerPdfUpper limit for paid OCR pages per PDF50 (max 500)
maxPdfSizeMbLarger files are not downloaded or charged100 (max 500)
timeoutPerPdfSecsPages read so far are kept120 (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.

StatusMeaningCharged
text_layer / ocr / mixedRead from text layer, OCR, or bothyes
partialPage, OCR or time limit reached (statusMessage says why)for what was read
no_text, encrypted, too_large, download_failed, unsupported_source, failedNothing usableno

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?

EventPrice
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 ApifyClient
client = 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.