Generate a searchable PDF or PDF/A from a scanned PDF or an image of text. More information: https://ocrmypdf.readthedocs.io/en/latest/cookbook.html.
ocrmypdf path/to/input_file path/to/output.pdf
ocrmypdf path/to/file.pdf path/to/file.pdf
ocrmypdf --skip-text path/to/input.pdf path/to/output.pdf
ocrmypdf --clean --deskew --rotate-pages path/to/input_file path/to/output.pdf
ocrmypdf --title "title" --author "author" --subject "subject" --keywords "keyword; key phrase; ..." path/to/input_file path/to/output.pdf
ocrmypdf --help