OCR: Scanned PDF & Image to Text (Word Boxes, Searchable PDF)
Pricing
$2.00 / 1,000 page read (ocr)s
OCR: Scanned PDF & Image to Text (Word Boxes, Searchable PDF)
OCR scanned PDFs, photos and images to text with Tesseract: per-page text, word boxes with confidence, optional searchable PDF. 28 languages, multi-page PDF and TIFF, file links or another Actor's dataset. Runs on Apify, no outside OCR API. $0.002 per page, no start fee.
Pricing
$2.00 / 1,000 page read (ocr)s
Rating
0.0
(0)
Developer
Open Data Tools
Maintained by CommunityActor stats
0
Bookmarked
1
Total users
0
Monthly active users
21 days ago
Last modified
Categories
Features
Share
Turn scanned PDFs, photos of documents and image files into text. Give it file links or the results of another Actor, and get back one row per page with the page text, a confidence score, and every word with its position on the page. Optionally get a searchable PDF for each file.
OCR runs on Apify's own servers with Tesseract 5, the open-source OCR engine. Your documents are not sent to any outside OCR or AI service.
Price
- $0.002 per page that returned text ($2 per 1,000 pages)
- No start fee. Blank pages, failed pages, failed files and refused links cost nothing.
- The searchable PDF, word boxes and every resolution cost the same.
- Users on the free Apify plan can read up to 50 pages per run.
- Your maximum charge per run is respected: the Actor stops before it would go over.
What you get for each page
- text: the text of the page, with line breaks and blank lines between paragraphs
- meanConfidence: average word confidence from 0 to 100, and lowConfidence = true when it is under 60 (check those pages)
- words: every word as
{text, conf, x, y, w, h, block, par, line}; boxes are in pixels of the page image (width x height at dpi) - wordCount, page, pageCount
- textUrl: a plain-text file with all pages of the file
- pdfUrl: the searchable PDF of the file (when Make a searchable PDF is on)
- status:
ok,blank(no text found, not charged),failedorskipped, with the reason in error
Example row from a 1970s scanned government report (shortened):
{"fileIndex": 1,"url": "https://example.com/scans/nbs-report-10653.pdf","page": 7,"pageCount": 26,"status": "ok","text": "EFFECTS OF DATA AGGREGATION IN MODELLING\n\nThree of the most common problems related to aggregation of data\nsources are ...","wordCount": 249,"meanConfidence": 95.1,"lowConfidence": false,"words": [{ "text": "EFFECTS", "conf": 96.7, "x": 397, "y": 197, "w": 127, "h": 22, "block": 1, "par": 1, "line": 1 },{ "text": "OF", "conf": 97, "x": 546, "y": 197, "w": 35, "h": 22, "block": 1, "par": 1, "line": 1 }],"dpi": 200,"width": 1673,"height": 2292,"languages": "eng","textUrl": "https://api.apify.com/v2/key-value-stores/.../records/001-nbs-report-10653.txt?signature=...","pdfUrl": "https://api.apify.com/v2/key-value-stores/.../records/001-nbs-report-10653.pdf?signature=..."}
The file links are signed, so they open without an Apify token.
Input
| Field | What it does |
|---|---|
| PDF or image links | One direct link per line. Scanned or photographed PDFs of any length, PNG, JPEG, TIFF (multi-page too), WEBP, BMP, GIF. Dropbox share links are turned into downloads. |
| Dataset from another Actor | OCR the file links in another Actor's results. The link field is detected (fileUrl, pdfUrl, documentUrl, imageUrl, image, images, downloadUrl, attachmentUrl, url, link; lists of links too), or name it in Link field. In an integration use {{resource.defaultDatasetId}}. |
| Languages | One or more of 28: English, German, French, Spanish, Italian, Portuguese, Dutch, Polish, Czech, Swedish, Danish, Norwegian, Finnish, Turkish, Russian, Ukrainian, Greek, Romanian, Hungarian, Chinese (simplified and traditional), Japanese, Korean, Arabic, Hebrew, Hindi, Vietnamese, Indonesian. |
| Page layout | Automatic (books, letters, columns), automatic with rotated-page detection, single column, single block (receipts, labels), or sparse text (forms, screenshots). |
| Pages | Which pages to read in each PDF or TIFF, for example 1-5, 9, 12-. Empty means all. |
| Resolution for PDFs | 200 DPI by default. In our tests 200 read normal print exactly as well as 300 and twice as fast. Use 300 for small print and footnotes, 400 for tiny text. Same price. |
| Make a searchable PDF | One PDF per file: the page image (grayscale) with an invisible text layer you can search, select and copy. |
| Word boxes and confidence | On by default. Turn off for smaller results when you only need text. |
| Maximum pages per file | 1,000 by default. |
What it is good for
- Making old scanned reports, books, letters and archives searchable
- Pulling text out of scanned invoices, contracts and forms before you parse them
- Feeding scanned documents to an LLM or a search index (RAG)
- Checking OCR quality page by page with the confidence score, and finding words on the page with their boxes
- Running after a scraper that collects PDF or image links, through an Actor-to-Actor integration
What it does not do
- It does not read handwriting well. Tesseract is built for printed text.
- It does not open web pages, social media, Google or Amazon links. Give a direct link to the file. Those links are refused and not charged.
- Password-protected PDFs fail (not charged).
- It does not keep the original colour in the searchable PDF: pages are stored in grayscale to keep the file small.
- PDFs that already have real text (not scans) are still read as images. That works, but a plain PDF text extractor is cheaper for them.
Tips
- If a page comes back with low confidence, try 300 DPI, or set the language. Choosing several languages makes OCR a little slower and sometimes less accurate, so pick only the ones in your documents.
- For receipts and labels, try Single block of text. For forms and screenshots with scattered text, try Sparse text.
- For pages scanned sideways or upside down, choose Automatic + detect rotated pages.
Limits
- Files up to 500 MB. Very large page images are scaled down to 40 megapixels.
- Each page has a 10-minute OCR limit.