Created
February 3, 2017 13:31
-
-
Save wkronmiller/c5eda650fa79e9e1bbc34aa1c7e981af to your computer and use it in GitHub Desktop.
Requires Tesseract ("brew install tesseract" should do the trick)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
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
Installation Instructions