Image & PDF OCR (Tesseract): text from scans, photos and PDFs avatar

Image & PDF OCR (Tesseract): text from scans, photos and PDFs

Pricing

Pay per event

Go to Apify Store
Image & PDF OCR (Tesseract): text from scans, photos and PDFs

Image & PDF OCR (Tesseract): text from scans, photos and PDFs

Extract text from image and PDF URLs with Tesseract OCR: plain text, lines with confidence and position, 8 languages. PDF pages that already have a text layer skip OCR. No API key. $2 per 1,000 OCR pages.

Pricing

Pay per event

Rating

0.0

(0)

Developer

fecklesspleb

fecklesspleb

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

14 days ago

Last modified

Features

Limited permissions

Share

Image & PDF OCR (Tesseract)

Turn scans, photos of documents and image-only PDFs into text. Give it file URLs and get one result per page: the text, each line with its confidence and position, and optionally every word. PDF pages that already have a text layer are read directly, with no OCR, so you pay the lower text-layer price.

  • Engine: Tesseract 5, running inside the Actor. No API key, no external OCR service.
  • Languages: English, German, French, Spanish, Italian, Portuguese, Dutch, Polish. You can combine several.
  • Inputs: PNG, JPEG, GIF, TIFF (including multi-page), WebP, BMP and PDF.

Empty input runs a free demo on 3 bundled sample pages, so you can see the output first.

Input

FieldDefaultNotes
urlsempty (= demo)Direct file links. Only use files you have the right to process.
languages["eng"]One or more of eng deu fra spa ita por nld pol.
pdfModeautoauto: a page's own text layer if it has at least minTextLayerChars non-space characters, otherwise OCR. ocr: always OCR. text: text layer only.
minTextLayerChars20Threshold for auto.
dpi200Render resolution for PDF pages (72-400).
psm"3"Tesseract page segmentation mode: 3 auto, 4 single column, 6 one block, 11/12 sparse text, 1 auto with orientation detection.
includeLinestrueLines with mean confidence and bbox [x, y, width, height] in pixels of the OCR image.
includeWordsfalseEvery word with confidence and bbox.
maxPagesPerFile20Pages or frames per file (1-500).
maxFiles100
maxFileSizeMb25Bigger files are skipped, free of charge.
concurrency2Files processed in parallel.

Output

One dataset item per page:

url, finalUrl (after redirects), fileIndex, fileType (image/pdf), page, pageCount, method (ocr/text-layer), languages, text, wordCount, charCount, meanConfidence (0-100, OCR only), lines, words, width, height, dpi, ocrSeconds, status.

Files that cannot be used produce one free item with "type": "status" saying why, and the run continues. Reasons include: a download error, robots.txt disallows the URL, not an image or PDF, too big, or a damaged file. RUN_SUMMARY in the key-value store has the counts.

Examples (real local runs, 2026-11-11, Tesseract 5.5.0, eng)

1. {"urls": ["https://raw.githubusercontent.com/tesseract-ocr/test/main/testing/phototest.tif"]}. This is a test image from the Tesseract project's Apache-2.0 test repository. Output (finalUrl, fileIndex and ocrSeconds left out, and only the first two lines shown):

{
"url": "https://raw.githubusercontent.com/tesseract-ocr/test/main/testing/phototest.tif",
"fileType": "image", "page": 1, "pageCount": 1, "method": "ocr", "languages": ["eng"],
"text": "This is a lot of 12 point text to test the\nocr code and see if it works on all types\nof file format.\n\nThe quick brown dog jumped over the\nlazy fox. The quick brown dog jumped\nover the lazy fox. The quick brown dog\njumped over the lazy fox. The quick\nbrown dog jumped over the lazy fox.",
"wordCount": 60, "charCount": 285, "meanConfidence": 96.2, "width": 640, "height": 480,
"lines": [
{"text": "This is a lot of 12 point text to test the", "confidence": 96.3, "bbox": [36, 92, 544, 30]},
{"text": "ocr code and see if it works on all types", "confidence": 95.1, "bbox": [36, 126, 582, 31]}
],
"status": "ok"
}

2. Empty input ({}), the demo. 3 pages, no charge:

  • demo:sample-scan.png, OCR, confidence 94.8: "SAMPLE INVOICE 2026-0042\nItem: Office chair, qty 2\nUnit price: 125.00\n\nTotal due: 250.00\n\nThank you for your business."
  • demo:sample-scan.pdf (image-only PDF), OCR at 200 DPI, confidence 96.4: "SCANNED LETTER\n\nThe meeting moved to Thursday at 10:00.\nPlease bring the signed form."
  • demo:sample-text-layer.pdf, method: "text-layer": "Release notes, version 1.2\nThis page has a real text layer,\nso pdfMode auto reads it without OCR."

3. A missing file: https://raw.githubusercontent.com/tesseract-ocr/test/main/testing/does-not-exist.png gives a free status item: "...does-not-exist.png: HTTP 404. Nothing was charged for this file."

Pricing

EventPrice
page-ocr: one page or image frame OCR-ed$0.002 ($2 per 1,000)
page-text-layer: one PDF page read from its text layer$0.0005
apify-actor-start: Apify's standard run start (one per GB of memory, so 1 at the default 1,024 MB)$0.00005
Failed files, status items, demofree

The run stops before starting a page it could not charge within your maximum charge per run.

Accuracy and limits

  • Tesseract works best on clean printed text. Photos at an angle, low resolution, handwriting and decorative fonts give lower meanConfidence and more errors.
  • Images over 40 megapixels are scaled down before OCR.
  • Each page has a 120 s OCR time limit.
  • Encrypted (password-protected) PDFs are not opened.

Fetching rules

  • Only http(s) URLs. URLs that point to private or local network addresses, or that contain a user name or password, are refused.
  • Each host's robots.txt is read and obeyed, for the ImagePdfOcrActor user agent and *. If it cannot be read (server error or an HTML page), the file is not fetched.
  • Redirects are followed (at most 5), and each hop is checked again.
  • No cookies, no logins, no proxy, no anti-bot workarounds.

Licences (evidence copies in evidence/, read 2026-11-11)