You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
308 B
Bash
11 lines
308 B
Bash
#!/usr/bin/env zsh
|
|
|
|
function images2pdf() {
|
|
if [ -z "$3" ]; then
|
|
echo "Usage: images2pdf <lang> <output-pdf> <input-file> …" >&2;
|
|
echo " lang: languages separated by + characterized by 3 characters, example: deu+eng" >&2;
|
|
return 2;
|
|
fi
|
|
convert "${@:3}" pdf:- | ocrmypdf -l "$1" - "$2";
|
|
}
|