How to Auto-Rotate Sideways Pages Before OCR with OCRmyPDF
Let OCRmyPDF detect and correct sideways pages before recognition, and check the text comes out upright.
THE FIELD GUIDE
Find out whether a PDF has searchable text, choose OCR settings for scanned pages, and verify the resulting text layer.
Let OCRmyPDF detect and correct sideways pages before recognition, and check the text comes out upright.
Check whether Roman numerals in a scanned PDF are recognised as letters, so chapter IV does not become chapter 1V.
Check whether right-to-left text in a scanned PDF is recognised in the right order, with the words running the right way.
Use OCRmyPDF's redo-ocr mode to replace a bad old text layer without touching the visible text, and check the new layer is…
Use Tesseract's sparse-text page segmentation mode on a page with scattered words, such as a diagram with labels, and check nothing is…
Use Tesseract's single-line page segmentation mode on a one-line scan, such as a caption or a label, and check the line comes…
Use Tesseract's single-column page segmentation mode on a one-column scan, and check the text comes out in reading order.
Check whether phone numbers in a scanned PDF survive OCR with every digit and separator intact, so a copied number still dials.
Run OCRmyPDF on a small page range before committing a whole book, and check the sample before the batch.
Use OCRmyPDF's oversample option to enlarge a low-resolution scan before recognition, and check whether the extra pixels help.