Skip to content

Instantly share code, notes, and snippets.

@jordanbCS
Created June 24, 2020 21:29
Show Gist options
  • Save jordanbCS/24f490d0cc24d307f82729e8ce32646a to your computer and use it in GitHub Desktop.
Save jordanbCS/24f490d0cc24d307f82729e8ce32646a to your computer and use it in GitHub Desktop.
OCR command for turning image pdfs into OCR'd pdfs
convert -density 300 -compress lzw -units 2 "input.pdf" "output.tif";tesseract "output.tif" "input_with_OCR.pdf" pdf; rm output.tif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment