From: Bastian Dehn Date: Sat, 18 Oct 2025 17:05:44 +0000 (+0200) Subject: change cut page detection text X-Git-Tag: v1.1.2^2~3^2~9 X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=137a79ab9ec1d9e58629ec8c2e9df7b65d2f4021;p=scantopdf.git change cut page detection text --- diff --git a/src/scanbasic.sh b/src/scanbasic.sh index a928cad..f928576 100644 --- a/src/scanbasic.sh +++ b/src/scanbasic.sh @@ -25,8 +25,8 @@ check_commands() command -v pdftk > /dev/null \ || errlog "command pdftk not found" \ || return $? - command -v zbarimg > /dev/null \ - || errlog "command zbarimg not found" \ + command -v pdfgrep > /dev/null \ + || errlog "command pdfgrep not found" \ || return $? command -v exiftool > /dev/null \ || errlog "command exiftool not found" \ @@ -150,9 +150,9 @@ detectsplit() || errlog "missing pdf" \ || return $? - trenn=$(zbarimg --raw --quiet $pdf) + trenn=$(pdfgrep "47CUTPAGE11" $pdf) - [ "$trenn" == "Trennblatt" ] \ + [ "$trenn" == "47CUTPAGE11" ] \ && echo "true" \ && return 0