PDF & Image to Text (OCR, Tables, Markdown)
Pricing
Pay per event
PDF & Image to Text (OCR, Tables, Markdown)
Extract clean text, tables and LLM-ready Markdown from PDFs and images. Uses the text layer when present and OCR (7 languages) only for scanned pages. Failed files are free.
Pricing
Pay per event
Rating
0.0
(0)
Developer
Cellwright
Maintained by CommunityActor stats
0
Bookmarked
1
Total users
0
Monthly active users
7 hours ago
Last modified
Categories
Features
Share
Turn PDFs and images into clean text, tables and LLM-ready Markdown in one run. The Actor reads the PDF text layer when it exists (fast, exact) and runs OCR only on scanned pages, so you get the best result at the lowest price. Failed files are free.
Great for RAG pipelines, invoice and document processing, archive digitisation and AI agents that need to read files.
Why this Actor
- Hybrid extraction per page: text layer first, OCR fallback (Tesseract, 300 DPI) only where needed.
- Tables detected on text pages, returned both as rows and as Markdown tables.
- Markdown output ready for LLMs and vector databases.
- 7 OCR languages: English, German, French, Italian, Spanish, Portuguese, Dutch – combinable.
- One record per file, always: success or a clear error. 4xx URLs are not retried; network errors are retried twice.
- Fair pricing: pay per processed page; cheaper text-layer pages, OCR pages priced separately.
Use cases
- RAG and LLM pipelines – PDFs and scans to clean Markdown with tables, ready for chunking and embeddings.
- Invoices, receipts, delivery notes – text and tables from digital PDFs and scanned copies in 7 languages.
- Archive digitisation – make scanned documents searchable in bulk.
- Image to text – screenshots, photos of documents and scanned pages (PNG, JPEG, TIFF, WebP, GIF, BMP).
- AI agents – let an agent read a PDF or image by URL.
Input
| Field | Default | Description |
|---|---|---|
sources | – | Public URLs of PDF / PNG / JPEG / TIFF / WebP / GIF / BMP files |
ocr | auto | auto (scanned pages only), always, never |
ocrLanguages | ["eng"] | eng, deu, fra, ita, spa, por, nld |
extractTables | true | Detect tables on text pages |
includePages | true | Add per-page text array |
maxPages | 200 | Page limit per file |
maxFileSizeMb | 50 | Size limit per file (max 200) |
Output
| Field | Description |
|---|---|
ok | true on success; false with error, errorType (input, blocked, download) |
source | Input URL |
type | pdf or image |
text | Full plain text |
markdown | Text plus tables as Markdown |
tables | [{ page, rows: [[...]] }] |
pages | [{ page, text, ocr, chars, tables }] |
pageCount, pagesProcessed, truncated | Page info (truncated if maxPages hit) |
ocrPages | Pages that needed OCR |
metadata | PDF title, subject, producer, creation date / image size |
chars, processedAt | Text length, UTC timestamp |
Pricing
Pay per event: page for each text-layer page, ocr-page for each page or image that needed OCR. Failed files cost nothing.
FAQ
How much does it cost? USD 0.0005 per text-layer page (USD 0.50 per 1,000 pages) and USD 0.003 per page or image that needs OCR (USD 3 per 1,000), plus Apify's small actor-start fee. Failed files are free.
Does it work with scanned PDFs? Yes. With ocr: auto every page without a text layer is OCR'd automatically; digital pages keep their exact text.
How do I keep costs low for digital PDFs? Set ocr: never – only the text layer is read and only the low page price applies.
Which languages does OCR support? English, German, French, Italian, Spanish, Portuguese and Dutch. Combine them for mixed documents, e.g. ["deu", "fra", "eng"].
Can it read handwriting? No, OCR is made for printed text.
How large can files be? Up to 200 MB (maxFileSizeMb) and 2,000 pages per file (maxPages, default 200).
Where do I find tables? In tables (rows per page) and inside markdown as Markdown tables.
Can I call it as an API? Yes: POST https://api.apify.com/v2/acts/cellwright~pdf-image-to-text/run-sync-get-dataset-items?token=YOUR_TOKEN with the input JSON returns the extracted text directly.
Do the files have to be public? They must be reachable by URL without a login (e.g. a download or cloud storage link). Private and internal addresses are refused.
Limits
- Public URLs only (no login); private and internal addresses are refused.
- Encrypted PDFs that forbid extraction are reported as errors.
- OCR quality depends on scan quality; handwriting is not supported.