Files
macos-system/bin/ocr
2022-04-07 00:38:42 +02:00

10 lines
240 B
Bash
Executable File

#!/bin/sh
for pdf in ./*.pdf; do
filename="`basename "${pdf}"`";
path="`dirname "${pdf}"`";
mkdir -p OCRed;
printf 'OCRing %s' "${pdf}";
ocrmypdf -l deu "${pdf}" "${path}/OCRed/${filename}";
printf '...done\n';
done