By default, OCRmyPDF permits Tesseract to run for three minutes (180 seconds) per page, and Tesseract has internal limits on the size of images it will process. A very large or detailed page can hit the timeout and fail the run. The documented fix is to raise the timeout with –tesseract-timeout and skip oversized pages with –skip-big.
Checked on 2026-11-29. We did not run any tool for this guide. Every result below is an expected result, marked UNTESTED, for you to confirm on your own files.
Prerequisites
- OCRmyPDF installed
- The PDF with the large page, and its page size
- The error message showing the timeout
Steps
1. Read the error and find the page
Read the error message and note which page timed out and how long it ran.
Expected result: The page number and the 180 second limit are noted.
2. Raise the timeout
Re-run with –tesseract-timeout 300 to allow 300 seconds per page.
Expected result: The run is retried with a 300 second timeout.
3. Skip oversized pages if it still fails
If the page still fails, add –skip-big 50 to skip pages larger than 50 megapixels.
Expected result: The oversized page is skipped and the rest of the file completes.
4. Check the skipped page by hand
Open the skipped page and OCR it separately at a lower resolution, or type its key text by hand.
Expected result: The skipped page is handled separately and noted in the file.
Worked example
A practice file has 4 pages. One large map page timed out at 180 seconds.
| Page | Size MP | Result at 180s |
|---|---|---|
| Page 1 | 12 | Done |
| Page 2 | 48 | Done |
| Page 3 | 62 | Timeout |
| Page 4 | 10 | Done |
| Pages checked | 132 |
Expected result: Three pages finish and the 62 MP page times out, so it is skipped with –skip-big 50 and handled separately (UNTESTED – confirm it yourself.)
Verdict table
| Check | Expected result | Pass? |
|---|---|---|
| Read the error and find the page | The page number and the 180 second limit are noted. | – |
| Raise the timeout | The run is retried with a 300 second timeout. | – |
| Skip oversized pages if it still fails | The oversized page is skipped and the rest of the file completes. | – |
| Check the skipped page by hand | The skipped page is handled separately and noted in the file. | – |
Limits
- Raising the timeout slows the whole run; only raise it for the file that needs it.
- Skipping a page means it has no text layer; note it so no one thinks the file is fully searchable.
Sources
- OCRmyPDF v16 release notes – checked 2026-11-29
- Tesseract release notes – checked 2026-11-29
