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.
Highlights
- 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.
Pricing
Pay per event on the Apify platform – you only pay for what the tool produces. A tiny start fee per run applies.
| Event | Price | USD per event |
|---|---|---|
| Text page One PDF page read from its text layer. | $0.50 per 1,000 | $0.0005 |
| OCR page One scanned PDF page or image read with OCR. | $3.00 per 1,000 | $0.003 |
Typical use cases
- Extract text and Markdown from PDF files
Turn PDFs into clean text and Markdown per page, including tables. Scanned pages are read with OCR automatically. Ideal as input for AI/RAG pipelines or search indexes. - OCR for scanned documents in German, French and Italian
Read scanned PDFs and images (invoices, letters, delivery notes) in German, French, Italian and English with OCR and get the text per page. - Extract tables from PDF files
Pull tables out of PDF reports, price lists and invoices as structured rows plus Markdown, so you can load them into a spreadsheet or database without copy-paste. - OCR for scanned PDFs (English)
Make scanned PDFs and photographed documents searchable: every page is run through OCR and returned as plain text and Markdown, page by page. - PDF to clean text for LLM and RAG pipelines
Convert PDFs into clean Markdown per page for AI pipelines: chunk-ready text for retrieval-augmented generation, embeddings or summarisation, with OCR for scanned pages. - Extract text from invoices and receipts (PDF, scans)
Turn invoices, receipts and delivery notes into searchable text and Markdown tables – digital PDFs directly, scanned or photographed documents via OCR in German, French, Italian or English. Feed the result into your bookkeeping or an AI extractor. - Bulk PDF to text from a list of URLs
Paste a list of PDF links and get the text of every document, page by page, in one dataset – export as JSON, CSV or Excel. Failed downloads are reported and not charged. - Image to text (OCR) for PNG, JPG, TIFF, WebP
Extract text from images – screenshots, photos of documents, scanned pages – in PNG, JPEG, TIFF, GIF or WebP. Several languages per image, output as plain text and Markdown. Bulk: one URL per image. - OCR for Spanish and Portuguese PDFs and scans
Extract text from scanned PDFs and images in Spanish and Portuguese (mixed with English). Text layers are used where present, OCR only where needed; tables and Markdown included. - Fast PDF text extraction without OCR
Read the embedded text layer of digital PDFs (reports, contracts, manuals) quickly and cheaply – no OCR, so only the low text-page price applies. Pages, tables and Markdown included; scanned pages are reported as empty.
How to use it
Run it in the Apify Console with a few clicks, call it via the Apify API from your own code, or connect it to AI agents through Apify's MCP server. Results come as a dataset (JSON, CSV, Excel) and, where relevant, as files. Full input documentation is on the Apify page.
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 and fair use
- 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.