In PDFs directory:
- Replace additional .in filenames with_:zmv '(*.*)(.*)' '${1//./_}$2
- mkdir jpg && mkdir txt
- mogrify -format jpg -density 200 -quality 100 -alpha off -path jpg/ -verbose *.pdf
- for file in jpg/*.jpg; do tesseract $file ${file%%.*}; done
- mv jpg/*.txt txt/