From e5bb54b94c1c970f18a368ed7627779327298ad3 Mon Sep 17 00:00:00 2001 From: Michiel Scholten Date: Sat, 20 Apr 2019 09:18:20 +0200 Subject: [PATCH] OCR script for PDFs --- bin/ocr | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 bin/ocr 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