Examples (6)
Create a new searchable PDF/A file from a scanned PDF or image file
ocrmypdf path/to/input path/to/output.pdfSkip pages of a mixed-format input PDF file that already contain text
ocrmypdf --skip-text path/to/input.pdf path/to/output.pdfClean, de-skew, and rotate pages of a poor scan
ocrmypdf --clean --deskew --rotate-pages path/to/input.pdf path/to/output.pdfPerform lossy optimization on a PDF without performing any OCR
ocrmypdf --tesseract-timeout 0 --optimize 2 --skip-text path/to/input.pdf path/to/output.pdfSet the metadata of a searchable PDF file
ocrmypdf --title "title" --author "author" --subject "subject" --keywords "keyword; key phrase; ..." path/to/input.pdf path/to/output.pdfDisplay help
ocrmypdf --helpmade by @shridhargupta | data from tldr-pages