From 018bebf307ead03dc40fdbba592d95756e7e34b1 Mon Sep 17 00:00:00 2001 From: Simon Rieger Date: Fri, 11 Feb 2022 13:44:07 +0100 Subject: [PATCH] add ocr-daemon --- ocr-deamon.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 ocr-deamon.sh 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