PDF & Image OCR to Markdown: Scanned PDFs to Text
Pricing
from $4.00 / 1,000 pages processed
PDF & Image OCR to Markdown: Scanned PDFs to Text
Turn scanned or digital PDFs and images (PNG, JPG, TIFF, WEBP) into clean Markdown text in reading order. No API keys. $0.004 per page.
Pricing
from $4.00 / 1,000 pages processed
Rating
0.0
(0)
Developer
Rowforge Data
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
5 days ago
Last modified
Categories
Features
Share
Extract text from scanned PDFs, digital PDFs and images (PNG, JPG, WEBP, TIFF) as clean Markdown in reading order. Use it for PDF to text and image to text conversion.
Equipped with smart layer detection: if a PDF page already has a digital text layer, the text is extracted directly at lightning speed. If a page is scanned or an image is submitted, a local CPU OCR engine reconstructs text lines and paragraphs in natural reading order.
Features
- Hybrid Extraction: Instantly uses embedded digital text layers when present; switches to OCR for scanned pages and images.
- Natural Reading Order: Reconstructs lines (top-to-bottom, left-to-right) and joins them into natural paragraphs.
- Page Headings: Every page output starts clearly with
## Page N. - SSRF Protected: Rejects private, loopback, link-local, carrier-grade NAT, and unroutable network addresses on both DNS resolution and socket connection.
- Reliable & Resilient: Bad URLs or damaged files emit a clear error row without crashing the overall Actor run.
- Pay-Per-Event: Only pay for pages successfully processed ($0.004 per page).
- Budget Protection: Respects user charge limits and page caps, reporting
truncated: trueandpagesInFile.
Pricing
$0.004 per page processed ($4 per 1,000 pages), plus a small start fee of $0.001 per GB of memory per run (about $0.002 at the default 2 GB). Pages in files that fail are not charged.
Input
Configure your run via the input form or JSON:
| Field | Type | Default | Description |
|---|---|---|---|
urls | Array of strings | (Required) | List of direct HTTP/HTTPS URLs to PDFs or images (PNG, JPG, WEBP, TIFF). Max 500 URLs per run. |
maxPagesPerFile | Integer | 50 | Maximum number of pages to process per document. |
forceOcr | Boolean | false | When true, forces OCR even if the PDF has a digital text layer. |
language | String | "en" | Recognition model language: en (English), latin (Latin / European), ch (Chinese), or devanagari (Hindi / Devanagari). |
Example Input
{"urls": ["https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf","https://raw.githubusercontent.com/madmaze/pytesseract/master/tests/data/test.png"],"maxPagesPerFile": 50,"forceOcr": false,"language": "en"}
Output
Results are stored in the run's default dataset. Each input file produces exactly one dataset row:
{"url": "https://raw.githubusercontent.com/madmaze/pytesseract/master/tests/data/test.png","status": "ok","error": null,"fileType": "png","pagesInFile": 1,"pageCount": 1,"pagesOcr": 1,"pagesTextLayer": 0,"truncated": false,"chars": 348,"seconds": 0.32,"markdown": "## Page 1\n\nThis is a lot of 12 point text to test the ocr code and see if it works on all types of file format.\n\nThe quick brown dog jumped over the lazy fox. The quick brown dog jumped over the lazy fox. The quick brown dog jumped over the lazy fox. The quick brown dog jumped over the lazy fox."}
Output Fields
url(string): Source URL requested.status(string):"ok"or"error".error(string | null): Error explanation if status is"error".fileType(string): Detected type ("pdf","png","jpg","webp","tiff").pagesInFile(integer): Total number of pages or frames present in the source file.pageCount(integer): Number of pages actually processed.pagesOcr(integer): Number of pages processed using OCR.pagesTextLayer(integer): Number of pages extracted from embedded text layers.truncated(boolean):trueif processing was cut short bymaxPagesPerFileor user charge budget limit.chars(integer): Length of generated Markdown text.seconds(float): Processing time in seconds.markdown(string): Formatted Markdown text.
Limits
- Input URLs limit: Maximum 500 URLs per run. Submissions exceeding 500 unique URLs fail immediately with an exit code 1 and a descriptive error message. Blank lines are ignored, and duplicate URLs are processed only once.
- File size: Up to 50 MB per file. Downloads exceeding 50 MB are stopped and marked with an error row.
- Page resolution cap: Rendered PDF pages and loaded images are capped to 4,000 px on their longest side before OCR to prevent memory exhaustion on oversized documents.
- Supported file formats: PDF, PNG, JPG/JPEG, WEBP, and TIFF.
- Timeouts: 120 seconds total download deadline per URL covering redirects and body.
- Protocol: HTTP and HTTPS only. Non-globally routable addresses (127.0.0.1, 10.0.0.0/8, 100.64.0.0/10, 169.254.0.0/16, 192.0.0.0/24, 198.18.0.0/15, multicast, link-local, private) are strictly refused at connect time with IP pinning to prevent DNS rebinding.
- Page cap: Default 50 pages per file (customizable via
maxPagesPerFile, minimum 1, maximum 500). Files exceeding the page limit are truncated withtruncated: true. If processing fails part-way through a file, pages already processed are preserved withstatus: "ok",truncated: true, and the failed page named inerror.
Supported Languages
en(English, default): General English Latin text, digits, and punctuation.latin(Latin / European): European languages with diacritics and accents (e.g. French, German, Spanish, Portuguese — café über niño).ch(Chinese): Simplified Chinese character recognition.devanagari(Hindi / Devanagari): Hindi and Sanskrit Devanagari script (e.g. भारत, नमस्ते).
What This Actor Does Not Do
- Handwriting: Optimized for machine-printed text, receipts, scans, and documents; unconstrained cursive handwriting is not supported.
- Tables as Tables: Table contents are extracted line-by-line in natural reading order; grid/cell table reconstruction as Markdown syntax pipes (
|---|) is not performed. - Non-HTTP URIs: Does not accept local file paths (
file://), FTP, or internal intranet IPs.