diff --git a/ocr-deamon.sh b/ocr-deamon.sh new file mode 100755 index 0000000..42c3243 --- /dev/null +++ b/ocr-deamon.sh @@ -0,0 +1,7 @@ +set -x + +DOKUMENT_DIR=/home/simono41/data1/Dokumente + +for file in $(find ${DOKUMENT_DIR} -path ${DOKUMENT_DIR}/.stversions -prune -o -name "*.pdf" ! -name '*-ocr.pdf' -print); do + ocrmypdf -l deu --force-ocr --jbig2-lossy ${file} ${file%.*}-ocr.pdf +done