# Changelog of Image & PDF OCR (Tesseract): text from scans, photos and PDFs (`fecklesspleb/image-pdf-ocr`) Actor

- **URL**: https://apify.com/fecklesspleb/image-pdf-ocr/changelog.md
- **Full Actor documentation**: https://apify.com/fecklesspleb/image-pdf-ocr.md

## Changelog

### 2026-11-11: 0.1.3

- Never-empty default dataset: count items actually written with `push_data` and decide on that counter. Do not use `get_metadata().item_count`, which can lag at 0 on the platform (Ranger, 0.1.2: demo gave 4 items for 3 pages, TIFF test gave 3 items for 2 pages) and was adding a false "No pages were processed (no readable file)" status row after real results. Pricing, defaults and the input schema are unchanged.
- Tests: lagging dataset metadata (`item_count` = 0 after writes) must not emit a status row.

### 2026-11-11: 0.1.2

- Input schema: added a `description` on `includeLines`, `includeWords`, `maxPagesPerFile`, `maxFiles`, `maxFileSizeMb` and `concurrency`. Apify build 0.1.1 failed with "Field schema.properties.includeLines.description is required". Defaults, limits, titles and pricing are unchanged.
- Tests: every input_schema property must have a non-empty title and description.

### 2026-11-11: first version (version 0.1)

- New Actor. OCR with Tesseract 5 (CLI, TSV output) on image URLs (PNG, JPEG, GIF, TIFF incl. multi-page, WebP, BMP) and PDF URLs (pages rendered with pypdfium2). One dataset item per page: text, lines with confidence and bbox, optional words.
- `pdfMode` `auto` (default) reads a page's own text layer when it has at least `minTextLayerChars` (20) non-space characters, otherwise OCR. Also `ocr` and `text`.
- 8 languages in the image: eng, deu, fra, spa, ita, por, nld, pol.
- Fetching: http(s) only, public addresses only, robots.txt obeyed (fail closed when unreadable), up to 5 redirects re-checked, size cap (default 25 MB).
- Empty input runs a free bundled demo (3 pages). Failed files give free status items.
- Proposed pay-per-event events: `page-ocr` $0.002, `page-text-layer` $0.0005. The run stops before a page it cannot charge.
- `apify >= 4.1, < 4.2`, `httpx`, `pillow`, `pypdfium2 >= 5.15, < 6`. Default memory 1,024 MB.
