add ocr-daemon

This commit is contained in:
Simon Rieger 2022-02-11 13:44:07 +01:00
parent cb0bef96ff
commit 018bebf307

7
ocr-deamon.sh Executable file
View file

@ -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