Image to text and PDF to text OCR with Tesseract: extract text from images, screenshots, receipts, invoices and scanned PDFs in bulk, in 44 languages including Chinese, Japanese and Arabic. Plain text, word boxes, hOCR or TSV. Failed files are free.
A PDF page or TIFF frame that cannot be read (an embedded image or a frame over the pixel limit, a page too small, a
damaged page) gets a free row of its own, and the file's other pages are read; before, the whole file ended there. A
PDF or TIFF stops after 10 failed pages in a row, with one free row for the pages left. Price, events and restart
safety unchanged.
0.1.19 (2026-11-18)
When a PDF or TIFF has more pages than "Pages per PDF or TIFF", the log names the file and the run's status says
how many pages were not read (before, they were left out with no word). Price and events unchanged.
README opens with a quick start and how to read image URLs from other actors' datasets; clearer field and input
descriptions.
0.1.17 (2026-11-17)
Each PDF page is opened, checked and rendered in a child process. Price, events and restart safety unchanged.
A page built from millions of tiny drawing or text objects (a few KB of PDF that takes gigabytes to open) gets a
free too_large row once it needs more than 512 MB, and the file's other pages are read; before, it could run
the whole run out of memory.
Rendering a page has a memory cap (512 MB plus the image) and a deadline of 300 s (free too_large row); a PDF
stops after two of its pages ran out of time, with one free too_large row for the pages left.
A page whose child crashes gets a free unreadable row.
0.1.16 (2026-11-13)
Hardening of the PDF text-layer child process. Price, events and restart safety unchanged.
A text-layer check that takes over 120 s is killed and the page gets a free too_large row.
Where the system cannot fork, the check runs in the main process instead of failing.
The child measures its own memory before the cap is set, is first in line for the OOM killer, and a child killed
for memory gives too_large while one that crashes (for example SIGSEGV) gives a free unreadable row.
Stopping on the cost limit closes the PDF page iterator.
0.1.15 (2026-11-13)
PDF text layer, after a second review. Price, events and restart safety unchanged.
A page over a big picture goes to OCR only when its own visible text is short (under 300 characters: a stamp, a
header, a slide title); a letter on a letterhead image, a brochure page with a large photo or a dark-theme slide
is a text page again.
The text-layer check runs in a child process that may use at most 512 MB more: a page built to fool the size
estimate (glyphs stacked on one spot) gets a free too_large row instead of running the run out of memory.
White text on a gradient or pattern banner is kept (a small rendering tells it from white on white).
A one-character line on a /Rotate 90 page keeps its place.
0.1.14 (2026-11-13)
PDF text layer, after an independent review of 0.1.13. Price, events and restart safety unchanged.
A page that is mostly a picture (a scan, a screenshot, a slide built around a picture) is read by OCR even when it
carries a line of text of its own, such as a court filing header, a DocuSign envelope id or a "Confidential"
footer: before, that line alone was returned and the page body was lost. A scan covered by an invisible OCR
layer still uses that layer.
Only text a reader can see is returned: text outside the visible page (crop box), white text on white and
invisible text with no picture under it are left out.
Pages with /Rotate 90 give their lines in reading order (they came last to first).
A page whose text layer holds more than 500,000 characters gets a free too_large row, decided before the text
is read (a 60 KB PDF holding 16 MB of text took 1.9 GB of a 2 GB run, and its row was too large to save). The
other pages of the file are read.
A row the platform refuses to save is replaced by a free other row, so no page goes missing.
Text in a wrong code page (Russian saved as Windows-1252, Hindi in a Kruti Dev font) is read by OCR when the
chosen languages are not written in Latin script, or when most letters are accented Latin-1 ones.
Dot leaders, form lines and code count as text: a run of one punctuation mark counts once, and at least half
letters or digits is enough (was 60%).
PDF reading is serialised across worker threads (PDFium is not thread-safe; runs at 8 GB and more read two files
at once).
processingMs on text-layer rows is the time taken to read the text layer; the cost limit takes the image's
share from the run's own prices.
0.1.13 (2026-11-13)
PDF pages that already hold real text are read from the PDF itself, with no OCR, and charged as a new, cheaper
text-page event ($0.50 per 1,000; the image event stays $2.50 per 1,000 for OCR). A page is used as text when its
text layer has at least 50 non-blank characters, at most 5% broken ones and at least 60% letters or digits; any other
page is rendered and read by OCR as before, page by page. New input "PDF text layer" (pdfTextLayer: auto,
always-ocr) and new output field method (text-layer or ocr) on every row. Words, hOCR, TSV and the character
whitelist are OCR output: with any of them on, every page is read by OCR. The cost limit counts a text page as a
fifth of an image. Restart safety and memory guards unchanged.
0.1.10 (2026-11-13)
Start-up never sits silent: each call to the Apify platform before the first lookup (starting the Actor, reading
the input, setting up the proxy, reading back the rows of a restarted run) has its own time limit and is tried
again, and the log says how long each took. If the platform still does not answer, or start-up makes no progress
for 2 minutes, the run stops with a status message that says where it waited, instead of waiting on. Price and
output unchanged.
0.1.8 (2026-11-13)
A run Apify moves or restarts goes on from its dataset: no file or page is read, saved or charged twice. Price and
output unchanged.
0.1.7 (2026-11-13)
The status message and SUMMARY count the files not read at the maximum cost per run.
0.1.6 (2026-11-13)
Memory: a page is decoded and read inside the same slot, so only one page per Tesseract process exists at full
size; pages over 5,000 px on their longer side are shrunk before reading (JPEGs decoded at reduced scale); PNGs
with transparency are flattened in gray. Six 60-megapixel PNGs now peak near 1.1 GB at 2 GB of memory.
PDF pages holding an embedded image over the pixel limit are refused (free too_large row) before rendering.
With little memory the pixel limit is lowered to what the run can decode.
A second pass (orientation or smoothing) that fails keeps the first pass instead of failing the page.
Reading a whole key-value store skips JSON and text records.
At the maximum cost per run, every file not read gets a free cost_limit row.
Redirect loops and bad redirects are not retried; clearer message for unknown file formats; only the listed image
formats are parsed; dataset fields described.
0.1.4 (2026-11-13)
The orientation check reads a 1,200 px copy (800 px missed some pages on their side).
0.1 (2026-11-12)
First build: Tesseract 5.5 (Debian's tesseract-ocr, tessdata_fast models) with 44 languages; image URLs,
key-value store records and dataset fields; PDFs and multi-page TIFFs page by page; orientation check, deskew,
upscaling of small images, inversion of light-on-dark pages and a second pass on poor pages; plain text, words
with boxes and confidence, hOCR and TSV; free rows for failed downloads and unreadable files.