add ocr-daemon
This commit is contained in:
parent
cb0bef96ff
commit
018bebf307
1 changed files with 7 additions and 0 deletions
7
ocr-deamon.sh
Executable file
7
ocr-deamon.sh
Executable 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
|
Loading…
Reference in a new issue