shell-scripte-code/ocr-deamon.sh
2022-02-11 13:44:07 +01:00

7 lines
254 B
Bash
Executable file

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