Add declaraties

This commit is contained in:
polyfloyd 2025-06-29 21:57:46 +02:00
parent 6d00df1225
commit a75c51ec42
38 changed files with 485 additions and 23 deletions

9
scripts/ocr-image.sh Executable file
View file

@ -0,0 +1,9 @@
#!/bin/bash -eux
in=$1
out=$(dirname "$in")/$(basename -- "$in" ".${in##*.}").pdf
tmp=$(mktemp --suffix=.pdf)
magick "$in" "$tmp"
ocrmypdf $tmp "$out"
rm "$tmp"