OCRmyPDF test for sample-receipt.pdf

← Back to OCRmyPDF

Input: sample-receipt.pdf

sample-receipt.pdf first page preview
uv run ocrmypdf --skip-text --sidecar "sample-receipt--ocrmypdf-python.pdf" "sample-receipt.pdf" "sample-receipt--ocrmypdf-python.pdf"
uv run ocrmypdf --skip-text --sidecar "sample-receipt--ocrmypdf-python.txt" "sample-receipt.pdf" "sample-receipt--ocrmypdf-python.txt"

Output: sample-receipt--ocrmypdf-python.txt

Loading preview…

--force-ocr: rasterizes every page and re-OCRs from scratch, ignoring any existing text layer — a genuinely different extraction path than --skip-text above (which trusts existing text and only OCRs image-only pages).

uv run ocrmypdf --force-ocr --sidecar "sample-receipt--ocrmypdf-python--force-ocr.pdf" "sample-receipt.pdf" "sample-receipt--ocrmypdf-python--force-ocr.pdf"

--force-ocr: rasterizes every page and re-OCRs from scratch, ignoring any existing text layer — a genuinely different extraction path than --skip-text above (which trusts existing text and only OCRs image-only pages).

uv run ocrmypdf --force-ocr --sidecar "sample-receipt--ocrmypdf-python--force-ocr.txt" "sample-receipt.pdf" "sample-receipt--ocrmypdf-python--force-ocr.txt"