Linux-Tech-Tips/Scripts/ocrmypdf-script.sh

11 lines
196 B
Bash
Raw Normal View History

2024-03-15 12:44:08 +01:00
#!/bin/bash
echo "Please select a file to OCR:"
IFS=$'\n'
files=( $(ls | grep pdf) )
declare -a files
select file in ${files[*]}
do
break
done
ocrmypdf -l deu+eng -d -c $file "${file%.*}"-OCR.pdf