Skip to content

Instantly share code, notes, and snippets.

@wkronmiller
Created February 3, 2017 13:31
Show Gist options
  • Save wkronmiller/c5eda650fa79e9e1bbc34aa1c7e981af to your computer and use it in GitHub Desktop.
Save wkronmiller/c5eda650fa79e9e1bbc34aa1c7e981af to your computer and use it in GitHub Desktop.
Requires Tesseract ("brew install tesseract" should do the trick)
#!/bin/bash
convert -density 300 $1 -depth 8 -fill white -background white -alpha Off out.tiff && tesseract out.tiff $1 pdf && rm -f out.tiff
@wkronmiller
Copy link
Author

wkronmiller commented Feb 3, 2017

@wkronmiller
Copy link
Author

I believe the particular imagemagick configuration is an adaptation of one I found on StackOverflow. If I can find it, I will link to it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment