diff options
Diffstat (limited to 'pdf2txt')
-rwxr-xr-x | pdf2txt | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -0,0 +1,15 @@ +#! /bin/sh + +if [ $# -eq 0 ]; then + echo "usage $0 : pdffile" +fi + +TIFF=$(basename $1 .pdf).tif +OUTF=$(basename $1 .pdf) + +FMT=${TIFF_FMT:-"tiffgray"} #tiff24nc + +gs -r300x300 -sDEVICE=${FMT} -sOutputFile=$TIFF -dBATCH -dNOPAUSE $1 +tesseract $TIFF $OUTF +rm $TIFF +echo "output : ${OUTF}" |