A batch OCR run can fail on some pages and succeed on others, and the failures hide in the log while the good pages look finished. The log is the only list of what needs fixing. This guide reviews one batch log and acts on it.
Prerequisites
A batch OCR run with a log file and the list of input files. Keep the log until every failed page is fixed.
Steps
1. Open the batch error log
Open the log file from the batch run. Expected result: the log lists the files processed and the errors found.
2. Count the failed pages
Go through the log and count the pages that failed. Expected result: three pages failed out of 40 processed.
3. List the failed pages by file
Write down the file and page number for each failure. Expected result: three failures are listed, each with a file and page.
4. Re-run OCR on the failed pages
Re-run OCR on the three failed pages with a higher resolution or a different setting. Expected result: a note that says whether each re-run succeeded.
Practice check: fictional batch of 40 pages, three failures
The table below is fictional practice material. It lists the three failed pages and the reason each failed.
| File and page | Reason |
|---|---|
| report.pdf, page 7 | Low resolution |
| invoice.pdf, page 2 | Blank page |
| letter.pdf, page 1 | Skewed scan |
Expected result. three of the 40 pages failed: one low-resolution page, one blank page and one skewed scan, each listed with its file and page.
Limits
- A log only lists errors the tool noticed; a page that OCR read badly without erroring will not appear, so spot-check the good pages too.
- UNTESTED – no OCR tool or AI tool was run; all results above are expected results. The practice file is fictional.
Sources
- OCRmyPDF Cookbook – –sidecar writes OCR text to a companion file; –output-type pdfa/pdf picks the output; –optimize shrinks the file; –mode strip removes the text layer. Checked 2026-11-29.
- Tesseract OCR Documentation, output formats – Tesseract supports plain text, searchable PDF, hOCR, TSV, ALTO and PAGE output; –psm sets the page segmentation mode. Checked 2026-11-29.
