OCR: Image & PDF to Text — Scanned PDF, Screenshot, Photo OCR
Pricing
from $2.50 / 1,000 page read by ocrs
OCR: Image & PDF to Text — Scanned PDF, Screenshot, Photo OCR
OCR API for images and PDFs: extract text from scanned PDFs, screenshots, photos, receipts and invoices, with line boxes, confidence and detected language. Reads a PDF's own text when it has one. 40+ languages, rotated pages fixed. Export to JSON, CSV, TXT or Markdown, or via API.
Pricing
from $2.50 / 1,000 page read by ocrs
Rating
0.0
(0)
Developer
Steady Scrape
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
5 days ago
Last modified
Categories
Features
Share
OCR: Image & PDF to Text — extract text from scanned PDFs, screenshots and photos
An OCR API for images and PDFs: give it links to pictures or PDFs and get, for every page, the full text, each line with its bounding box and confidence, the text grouped in blocks in reading order, the detected language and script, and the page's size. Image to text and PDF to text in one Actor: scanned PDFs, screenshots, phone photos of documents, receipts, invoices, forms, book scans, multi-page TIFFs.
The OCR runs inside the Actor. An open model (PaddleOCR's PP-OCR, run with ONNX Runtime) reads your files on the Actor's own CPU: no Google Vision, no cloud OCR API, no LLM, nothing your documents are sent to, and no key to bring.
A PDF that already has its text is not OCR'd. A page made by a program (Word, a browser, an invoicing system) carries its own text: it is read exactly, in milliseconds, and billed at a fifth of an OCR page. Only scanned pages go through OCR. You can force OCR, or forbid it.
Pricing
| event | price | when |
|---|---|---|
page | US$0.0025 (US$2.50 per 1,000 pages) | a page or picture read by OCR |
text-page | US$0.0005 (US$0.50 per 1,000 pages) | a PDF page read from its own text, no OCR |
A link that does not answer, a web page, a password-protected PDF, a blank page, a file too large: each leaves one row that says why, and costs nothing.
What it reads
- Images: PNG, JPG, WebP, TIFF (every page of a multi-page scan), BMP, GIF (first frame), HEIC from iPhones.
- PDFs: every page, or the pages you ask for (
1-3, 5, 10-), up to 100 per file by default. - Share links: Google Drive files and Google Docs/Slides (exported to PDF), Dropbox links. They must be shared with "Anyone with the link".
- Another Actor's output: pick a dataset (screenshots, product images, scraped PDFs) and name the field that holds the links, or let the Actor find the picture and PDF fields itself. Signed links of Apify key-value records work too.
- Sideways and upside-down pages are found and read the right way up (
autoRotate), and phone photos are turned by their EXIF orientation.
Pages of Instagram, TikTok, Facebook, X, YouTube and other social or video platforms are refused before anything is downloaded: this Actor reads your own files, it does not download from platforms.
Use cases
- Scanned PDFs to searchable text: archives, contracts, letters, old reports; a
.txtper file with its pages in order, ready for search or an index. - Receipts and invoices: the text with each line's position, so totals and dates can be picked out by where they are; items stay on one line with their price.
- Screenshots: read the text of screenshots another Actor took (a website screenshot API, a social media scraper).
- AI and RAG pipelines: clean text per page with confidence, language and a stable JSON shape, from documents an LLM cannot read as files.
- Forms and book scans: blocks in reading order, two-column pages read column by column, headings in the Markdown.
Input
| field | what it does |
|---|---|
files | Links to images and PDFs, up to 300 MB each and 1,000 per run. |
datasetId | A dataset of another run; every image or PDF link in it is read. |
datasetFields | The dataset fields that hold the links (images.url takes the url of every element of images). Empty: the Actor picks picture, screenshot, scan, PDF, document, receipt and invoice fields, and leaves thumbnails, avatars and logos out. |
script | The alphabet: latin (default: English and other Latin-alphabet languages, plus Chinese), japanese, korean, cyrillic, arabic, devanagari, thai, greek, tamil, telugu. |
pdfMode | auto (default: a PDF's own text when it has one, OCR for scanned pages), ocr (always OCR), text-layer-only (never OCR). |
pages | Which pages of each PDF or TIFF, like 1-3, 5, 10-. Empty: every page. |
maxPagesPerFile | Pages past this are named in one free row (default 100, up to 2,000). |
autoRotate | Find text turned 90, 180 or 270 degrees and read it upright (default on). |
outputFiles | Also write, per input file, a txt (pages apart by a form feed), an md (Markdown with page headings) and/or a json (pages → blocks → lines with boxes). Each comes with a link that opens for anyone. |
{"files": ["https://raw.githubusercontent.com/tesseract-ocr/test/main/testing/eurotext.tif","https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf"],"outputFiles": ["txt"]}
Output
One row per image or PDF page. This is the real row of the first file of the example above (lines shortened to two):
{"status": "ok","fileIndex": 1,"sourceUrl": "https://raw.githubusercontent.com/tesseract-ocr/test/main/testing/eurotext.tif","fileName": "eurotext.tif","fileType": "tiff","pageNumber": 1,"pageCount": 1,"method": "ocr","text": "The (quick) [brown] {fox} jumps!\nOver the $43,456.78 <lazy> #90 dog\n& duck/goose, as 12.5% of E-mail\nfrom aspammer@website.com is spam.\nDer ,schnelle\" braune Fuchs springt\nüber den faulen Hund. Le renard brun\n«rapide» saute par-dessus le chien\nparesseux. La volpe marrone rapida\nsalta sopra il cane pigro. El zorro\nmarrón rápido salta sobre el perro\nperezoso. A raposa marrom rápida\nsalta sobre o cão preguiçoso.","blocks": [{ "text": "The (quick) [brown] {fox} jumps!\nOver the $43,456.78 …", "box": { "x": 92, "y": 53, "width": 833, "height": 613 }, "lineCount": 12 }],"lines": [{ "text": "The (quick) [brown] {fox} jumps!", "confidence": 0.9799, "box": { "x": 98, "y": 53, "width": 737, "height": 63 }, "polygon": [[99, 53], [835, 63], [834, 116], [98, 106]], "block": 0 },{ "text": "Over the $43,456.78 <lazy> #90 dog", "confidence": 0.9796, "box": { "x": 98, "y": 102, "width": 795, "height": 65 }, "polygon": [[99, 102], [893, 114], [892, 167], [98, 155]], "block": 0 }],"language": "es","script": "Latin","confidence": 0.984,"rotation": 0,"width": 1024,"height": 800,"dpi": null,"lineCount": 12,"wordCount": 69,"charCount": 347,"textFileUrl": "https://api.apify.com/v2/key-value-stores/…/records/001-eurotext.txt?signature=…","billedEvent": "page"}
The PDF of the example has its own text, so its row says "method": "text-layer", "confidence": null (the text is
exact) and "billedEvent": "text-page".
Fields
| field | meaning |
|---|---|
status | ok, or why there is no text: no_text, invalid, unreachable, not_supported, too_large, protected, refused, skipped, failed. Only ok rows are billed. |
reason | For every row that is not ok: what happened and what to do about it. |
fileIndex, pageNumber, pageCount | The file's place in the run, the page, and how many pages the file has. |
sourceUrl, fileName, fileType | The link as you gave it, the file's name, and its type (pdf, png, jpg, tiff…). |
method | ocr, or text-layer for a PDF page read from its own text. |
text | The page's text in reading order: lines on their own lines, blocks apart by a blank line. |
blocks | Paragraphs, columns and table rows, each with its text, its box and its number of lines. |
lines | Every line with its text, confidence (0–1, null for a PDF's own text), its box (x, y, width, height) and its polygon (four corners, for slanted text), in the pixels of the page as you sent it, and the block it belongs to. |
language, script | ISO code of the language (en, de, zh…) and the Unicode script (Latin, Han, Cyrillic…). |
confidence | The mean confidence of the page's lines. |
rotation | How far the text was turned (0, 90, 180, 270), null when autoRotate is off. |
width, height, dpi | The page's size in pixels; for a PDF, rendered at dpi (200). |
wordCount, charCount, lineCount | Counts of the page's text (Chinese and Japanese words included). |
textFileUrl, markdownFileUrl, jsonFileUrl | The file's outputs, when asked for: links that open for anyone. |
datasetItemIndex | For links taken from a dataset, the item they came from. |
billedEvent, processingSeconds, processedAt | What the page was billed as, how long it took, when. |
Languages
One run reads one script, chosen with script:
latin(default, the fastest): English, Spanish, French, German, Portuguese, Italian, Dutch, the Nordic languages, Indonesian, Malay, Swahili and other Latin-alphabet languages, plus Chinese (simplified and traditional), mixed on one page. Polish, Czech, Romanian and Vietnamese are read, but some of their accents are lost.japanese(with Chinese and English),korean,cyrillic(Russian, Ukrainian, Bulgarian, Serbian, Kazakh…),arabic(Arabic, Persian, Urdu),devanagari(Hindi, Marathi, Nepali),thai,greek,tamil,telugu.
The language of each page is detected from its text and given in its row. On a page of a few words (a receipt, a
one-line title) it is left null rather than guessed.
Speed and memory
The Actor runs with 2 GB of memory by default. Measured on Apify at 2 GB: a dense A4 page of a research paper was OCR'd in 2.1–2.3 s, a scanned page of a dozen lines in half a second, and a PDF page with its own text in milliseconds. From 6 GB the engine runs on two cores; under 2 GB a large photo or a big PDF page can run out of memory.
If your spending limit pays only for part of the run, the Actor stops at the limit and says which pages it did not
read; when only text-page is left, it still reads PDF pages that have their own text. A run moved by Apify to another
server goes on where it was: no page is read or billed twice.
Limits
- The model is made for printed text: do not count on it for handwriting.
- 300 MB per file, 120 million pixels per image, 1,000 files per run, 2,000 pages per file.
- Password-protected PDFs, Word/Excel files and archives are not opened: export to PDF, or remove the password.
- A PDF whose own text is garbled (broken fonts) is usually caught and OCR'd instead; if one slips through, use
pdfMode: ocr. - Tables come out as rows of text with their boxes, not as cells.
Is it legal?
It reads files you give it: your own documents, or files you have the right to process. Do not use it on documents that contain other people's personal data unless you have a lawful basis to process them (GDPR, CCPA and similar).
This Actor is not affiliated with, endorsed by or connected to PaddlePaddle, RapidAI, Google or Dropbox. It runs the open PP-OCR models (Apache-2.0) through RapidOCR (Apache-2.0); Google Drive and Dropbox links are only downloaded as the files they share.
Related
- Audio & Video Transcriber: the same idea for speech — audio and video files to text, SRT and VTT subtitles, with Whisper running inside the Actor.
- Questions or a file it reads badly? Open an issue on the Actor's Issues tab; it is answered.