Image and PDF OCR
Pricing
from $17.00 / 1,000 pages read by ocr
Image and PDF OCR
Read text from images and scanned PDFs by web address: one row per image or page with the text, word count, and a confidence score. PDFs that already hold text are read from that text, cheaper. Open source OCR inside the run; no API key, your files go to no outside service.
Pricing
from $17.00 / 1,000 pages read by ocr
Rating
0.0
(0)
Developer
Mamba Labs
Maintained by CommunityActor stats
0
Bookmarked
1
Total users
0
Monthly active users
19 minutes ago
Last modified
Categories
Features
Share
Give web addresses of images or PDF files. The actor reads each image, and each page of a scanned PDF, into text with OCR, and returns one row per page: the text with its lines kept, word and line counts, Tesseract's mean word confidence, and the number of words it was unsure of. A PDF page that already holds text is read from that text instead, which is exact and cheaper. You pay per page. Failed downloads, unsupported files, summary rows, and a refused input are free.
Features
- One row per image or PDF page, with the text,
word_count,line_count,mean_confidence(0 to 100), andlow_confidence_wordsso you know which pages to check by eye. - PNG, JPEG, GIF (first frame), WebP, BMP, and TIFF images, and PDF files, up to 30 MB each. Phone photos are turned upright from their camera tag before reading.
- PDFs: pages with a text layer are read from it (
methodtext_layer, charged aspage-text), and pages without one go through OCR (methodocr, charged aspage-ocr). Setuse_pdf_text_layerto no to OCR every page. - English, German, French, Spanish, Dutch, Italian, and Portuguese, one language per run.
page_layoutsparse for receipts, forms, signs, and screenshots; auto for letters, articles, and book scans.max_pages_per_file(default 10) caps the pages read, and so the charge, per PDF.- Each file ends with a free summary row: pages read, pages by OCR, pages from the text layer, or why the file was not read.
- Number and on or off inputs are text, so Clay can send them as they are.
How the data is read
The actor downloads each address directly, and retries through the Apify proxy pool only if the host refuses the direct address. It never uses residential proxies. Images are converted to gray and scaled so the long side is at most 2,500 pixels; PDF pages are rendered at 200 dpi with the same limit. Tesseract, the open source OCR engine, reads each page inside the run. No AI model, no API key, and no outside OCR service: your files go nowhere but the run. The same file gives the same text.
How it differs from other Mamba Labs actors: Business PDF Field Extractor reads invoices, purchase orders, and contracts into fixed fields such as totals and due dates; Media URL Transcriber turns audio and video into text. This actor returns the plain text of any image or page, for any later step you choose.
Input
| Field | Type | Default | What it does |
|---|---|---|---|
urls | array | Web addresses of PNG, JPEG, GIF, WebP, BMP, or TIFF images, or PDF files, up to 30 MB each. The address must answer without a login. In Clay, put the column in a one item list. | |
language | string | eng | Language of the text: eng (default), deu, fra, spa, nld, ita, or por. One language per run; run files in another language as a separate run. |
page_layout | string | auto | auto (default) finds columns and blocks, which suits letters, articles, and scans. block reads the page as one block of text. sparse finds scattered text, which suits receipts, forms, signs, and screenshots. |
max_pages_per_file | string | 10 | Pages to read per PDF, from page 1, up to 100. Default 10. This caps the charge per file. |
use_pdf_text_layer | string | yes | yes (default): a PDF page that already holds text is read from that text, charged as page-text, which is cheaper and exact. no: every page is read by OCR and charged as page-ocr. |
max_files | string | 100 | Files to read in this run, up to 1,000. Default 100. |
max_charge_usd | string | Optional. The run stops before a charge that would pass this amount. Summary rows are always returned. |
Example:
{"urls": ["https://raw.githubusercontent.com/tesseract-ocr/test/main/testing/phototest.tif","https://example.com/scanned-letter.pdf"],"language": "eng","max_pages_per_file": "10"}
Output
| Field | Type | What it holds |
|---|---|---|
row_type | string | One of: page, file_summary, run_summary. run_summary is the one free row written when the input is refused. |
input_url | string | The image or PDF address from your input. |
file_type | string | image or pdf, from the file's first bytes. |
content_type | string | Content type the host sent. |
file_bytes | integer | Size of the downloaded file. |
page_number | integer | Page of the PDF this row holds; 1 for an image. |
page_count | integer | Pages in the file. |
method | string | ocr when Tesseract read the page, text_layer when the PDF's own text was used. |
language | string | Tesseract language code used, for example eng or deu. |
text | string | The page text, lines kept, up to 100,000 characters. |
char_count | integer | Characters of text on the page. |
word_count | integer | Words on the page. |
line_count | integer | Lines of text on the page. |
mean_confidence | number | Tesseract's mean word confidence, 0 to 100. Null for a text_layer page. |
low_confidence_words | integer | Words Tesseract read with confidence under 60. Check these by eye. |
page_width_px | integer | Width of the image Tesseract read, after scaling. |
page_height_px | integer | Height of the image Tesseract read, after scaling. |
pages_read | integer | On a file summary row: pages returned for this file. |
pages_ocr | integer | On a file summary row: pages read by OCR, each charged as page-ocr. |
pages_text_layer | integer | On a file summary row: pages read from the PDF's text layer, each charged as page-text. |
row_status | string | ok, or why this row carries no data: no_results, no_change, partial, blocked, or error. |
error_reason | string | Why the row is not ok. A refused input reads input_invalid: followed by what to fix. |
billable_events_json | string | What this row was billed as, for example {"page-ocr":1}. {} means free. |
scraped_at | string | When the row was written, UTC. |
Pricing
Pay per event. Summary rows, failed downloads, unsupported files, and a refused input are free.
| Event | Free plan | Bronze | Silver | Gold |
|---|---|---|---|---|
page-ocr, one image or scanned page read by OCR | $0.02 | $0.019 | $0.018 | $0.017 |
page-text, one PDF page read from its text layer | $0.001 | $0.00095 | $0.0009 | $0.00085 |
apify-actor-start, once per run (one per GB of memory; the default 1024 MB is one) | $0.005 | $0.005 | $0.005 | $0.005 |
Per 1,000 rows of page-ocr: $20.00 on the free plan, $17.00 on Gold.
Free plan cap: 1.50 USD of evaluation a month, about 75 rows. Any paid Apify plan removes the cap, and it resets on the 1st. The run stops before a charge that passes your maximum charge per run in Apify or your max_charge_usd input.
Mamba Labs pays the platform costs of your run, Apify proxy traffic included.
A page that holds no text is still charged as page-ocr, because the page was read: the row says no_results and Tesseract found no text. Use max_pages_per_file to cap the pages read per PDF.
Usage examples
Clay. Number and on or off inputs are text fields, which is what Clay sends. urls takes a JSON list, so put the file address column inside a one item list.
Receipts and forms. Run photos with page_layout sparse, then send text to a parser or an AI step for the fields you need. Sort by mean_confidence to find photos to retake.
Document archives. Run scanned PDFs with max_pages_per_file set to the longest file, and join rows on input_url and page_number.
MCP. The Mamba Labs MCP server @mambalabsdev/mcp-image-pdf-ocr exposes this actor to Claude and other MCP clients.
Error handling
| Case | What you get |
|---|---|
| Missing or unreadable input | One free row, row_type run_summary, error_reason starting input_invalid: with what to fix. The run ends successfully and charges nothing but the run start |
| An unknown language or page layout | Refused the same way, with the value |
| The address answers 404 or another error | One free file_summary row with row_status error |
| The host refuses the download (HTTP 403, 429, or 503) | One free file_summary row with row_status blocked |
| The file is not an image or a PDF, is over 30 MB, or needs a password | One free file_summary row that says which |
A PDF longer than max_pages_per_file | Pages 1 to the cap, then a file_summary row with row_status partial |
| The run is close to its timeout | The actor stops starting new pages 90 seconds before the timeout and delivers what it has |
Limitations
- OCR quality follows the image. Clean scans at 200 dpi or more read well; phone photos at an angle, low light, handwriting, and stylized fonts read poorly and show a low
mean_confidence. Handwriting is not supported. - Images larger than 2,500 pixels on the long side are scaled down before reading, so very small print on a very large image can be lost; crop it first.
- Tables come back as text lines, not cells.
- Languages outside the seven listed are not installed. Right to left and Asian scripts are not supported.
- The address must answer without a login. Private network addresses are not read.
- A PDF text layer is used as the PDF holds it. A text layer made by bad OCR elsewhere is returned as is; set
use_pdf_text_layerto no to read those pages again.
Mamba Labs actor suite
Built by Mamba Labs.