Create a new searchable PDF/A file from a scanned PDF or image file

ocrmypdf

  • 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>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

ocrmypdf {{path/to/input_file}} {{path/to/output.pdf}}

click the source code to copy install ocrmypdf on any operating system with command-not-found.com