# Changelog of Image to Text OCR – Photos, Scans & Scanned PDFs (`glidepath/image-to-text-ocr`) Actor

- **URL**: https://apify.com/glidepath/image-to-text-ocr/changelog.md
- **Full Actor documentation**: https://apify.com/glidepath/image-to-text-ocr.md

## Changelog

### Unreleased

- robots.txt rules are matched without a regular expression: a rule with many `*` wildcards (e.g. `/*a*a*a*a*a*a*b`) could keep a run busy for minutes; what is allowed and disallowed is unchanged.
- E-mail redaction runs in linear time on very long words (it could take tens of seconds on one 40,000-character word); the same addresses are removed.

### 0.1 — 2026-11-22 (run outcome)

- A run where no image could be read because of the input itself (dead or invalid links, links that are not images
  or PDFs, robots.txt disallows, files that are too large, damaged or password-protected, a **PDF pages** range that
  selects nothing, your maximum cost per run reached first) now ends SUCCEEDED with 0 rows instead of FAILED; the
  status message names the cause and `ERRORS` lists every image's reason, as before. Network and server errors,
  blocks and rate limits, a robots.txt that can't be read, unexpected errors, OCR engine failures or timeouts and a
  PDF renderer that does not work still fail the run, and the status message now starts with what made it fail.
- A bot check served with HTTP 200 or 202 is reported as `BLOCKED` (it was `NOT_AN_IMAGE`). Out of memory, a system
  error or an unexpected exception while decoding or rendering a file is the new code `ERROR` (it was `DAMAGED`). When
  a PDF page stops the renderer before any page of the run was rendered, the renderer is checked on a test page once:
  if that fails too, the run fails as "PDF rendering is not working" instead of listing every page as `TOO_LARGE`.

### 0.1 — 2026-11-22 (scanned PDFs)

- The run's status message says "images or pages" (a PDF page is a row too).
- **Scanned PDFs:** put links to PDFs in the same URL list as images. A PDF is recognised by its content (not by
  the link's extension); every page is rendered at 300 dpi and read like an image (turned upright, straightened,
  OCR, e-mail addresses and phone numbers removed), one row per page in page order with `format: "pdf"`,
  `pageIndex` and the new `pageCount` (also on image and TIFF rows). The PDF's text layer is not used; for digital
  PDFs use PDF Text Extractor.
- New inputs **Max pages per PDF** (`maxPagesPerPdf`, default 50, up to 1,000; pages left over are `PAGES_CAPPED`
  in `ERRORS`) and **PDF pages** (`pdfPages`, e.g. `1-5, 8, 10-`; a range that selects nothing is
  `NO_PAGES_SELECTED`).
- Every PDF page with text is one `image-ocr` event at the same price as an image; pages without text are saved as
  `no-text` and not charged. Pages count toward **Max images per run**, and the run stops at your maximum cost per
  run also in the middle of a PDF. Password-protected PDFs (`ENCRYPTED`) and damaged ones (`DAMAGED`) are never
  charged; a page too big for the run's memory is skipped as `TOO_LARGE` and the next page is still read.
- PDFs may be up to 100 MB (images stay at 40 MB); a large PDF is written to a temporary file while it downloads
  instead of being held in memory.
- PDF rendering uses PDFium through pypdfium2 5.14.0 (Apache-2.0 / BSD-3-Clause; see NOTICE). PDFium runs in a
  separate process per PDF with a memory limit (the run's memory per worker) and a 60-second limit per page: a page
  that needs more is `TOO_LARGE` and the next page is read in a new process, so a malicious or oversized PDF can't
  stop the run; after 3 such pages the rest of that PDF is given up (`DAMAGED`). A page so long and narrow that it
  would be more than 65,000 pixels long is `TOO_LARGE`.
- **Saved inputs and schedules:** a PDF link used to end as `NOT_AN_IMAGE` (free). It is now read and charged per
  page with text (up to 50 pages per PDF by default); set **Max pages per PDF** or **PDF pages** to limit it.
- Rows are saved as soon as each image or page is read (a PDF's rows used to wait for its last page), and `SUMMARY`
  and the status message are updated as they are saved, so a run that stops early keeps every page read so far.
- When **Max images per run** or your maximum cost per run stops a PDF or TIFF part-way, `ERRORS` names the pages
  that were not saved (`SKIPPED`).

### 0.1 — 2026-11-22 (initial release)

- Read the text in images from their URLs: JPEG, PNG, WebP, GIF (first frame), BMP and TIFF (every page, up to 50;
  more pages are noted as `PAGES_CAPPED` in `ERRORS`). One row per image (per TIFF page): text in reading order,
  optional lines and words with confidence and pixel boxes, mean confidence, the engine used, the rotation applied,
  image size and format.
- Open-source OCR inside the Actor: Tesseract 5 in 16 languages, with RapidOCR (PP-OCRv4) to find, straighten and
  turn the text and as a second reader for images Tesseract is unsure about. No AI or API fees.
- Images are turned upright at any angle: tilted photos and scans, sideways pages (also a few degrees off square)
  and upside-down pages. Light text on a transparent background is read too. Very long screenshots are read in bands.
- Images where no text is found are saved as `no-text` and not charged; images that fail (download error, robots.txt,
  not an image, too large for the run's memory) are listed in `ERRORS` with the reason, summed up by reason in the
  status message, and never charged. `SUMMARY`, `ERRORS` and the status message are updated while the run goes on.
- robots.txt (RFC 9309) checked for every image and every redirect; private and internal addresses refused.
- E-mail addresses and phone numbers are removed from the text, the lines and the words, also when OCR puts spaces
  around the '@' or the address or number wraps onto the next line.
