Skip to content

Instantly share code, notes, and snippets.

@mittenchops
Last active August 29, 2015 13:56
Show Gist options
  • Select an option

  • Save mittenchops/9122175 to your computer and use it in GitHub Desktop.

Select an option

Save mittenchops/9122175 to your computer and use it in GitHub Desktop.
Convert a PDF with no text data into a text file
# https://launchpad.net/~gezakovacs/+archive/pdfocr
pdfocr -i "$file" -o /tmp/tmp.pdf
pdftotext /tmp/tmp.pdf "`basename "$file" .pdf`.txt"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment