Translation-Help
Waltraud Erber
Staatlich geprüfte Übersetzerin für Englisch und Deutsch
Diplom Informatikerin (FH)
Bundesverband d. Dolmetscher und Übersetzer
Institute of Translation&Interpreting
American Translators Association
Einkaufshilfe für Übersetzungsdienstleistungen
MetaGer-Suche: Deutsche Meta-Suchmaschine mit Fokus auf Privatsphäre
if [ $# == 0 ]; then echo "usage: ocr.sh pdf-file-name" exit fi; if [ ! -f $1 ]; then echo "$1 does not exist" exit fi; pdftk "$1" burst dont_ask for f in pg_*.pdf do echo "Convert PDF to TIFF for file: $f ..." convert -depth 8 -density 300 -quality 100 \ "$f" "$f.tiff" rm -f "$f" done for f in pg_*.tiff do echo "OCR recognition for $f ..." tesseract "$f" "$f.txt" done cat pg_*.txt > result.txt rm pg_*