diff --git a/bin/ocr b/bin/ocr new file mode 100644 index 0000000..60ac94d --- /dev/null +++ b/bin/ocr @@ -0,0 +1,7 @@ +#!/bin/bash +# apt install ocrmypdf +if [ "$1" != "" ]; then + nice -20 ocrmypdf --redo-ocr --pdfa-image-compression lossless --output-type pdfa-2 "$1" "$1" +else + echo "No filename given" +fi