From 137a79ab9ec1d9e58629ec8c2e9df7b65d2f4021 Mon Sep 17 00:00:00 2001 From: Bastian Dehn Date: Sat, 18 Oct 2025 19:05:44 +0200 Subject: [PATCH] change cut page detection text --- src/scanbasic.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 -- 2.47.3