Created
July 17, 2013 18:12
-
-
Save davemenninger/6022994 to your computer and use it in GitHub Desktop.
Uses tesseract, hocr2pdf, and pdfconcat to build a OCR'ed ( searchable ) PDF from a dir full of tif files. Inteded use is with the output of a diybookscanner and ScanTailor.
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 | |
for img in *.tif; do tesseract $img $img hocr; done | |
for img in *.tif; do hocr2pdf -i $img -o $img.pdf < $img.html; done | |
pdfconcat -o merged.pdf ./*.pdf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment