]> gitweb.hhaalo.de Git - scantopdf.git/commitdiff
change cut page detection text
authorBastian Dehn <hhaalo@arcor.de>
Sat, 18 Oct 2025 17:05:44 +0000 (19:05 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Sat, 18 Oct 2025 17:05:44 +0000 (19:05 +0200)
src/scanbasic.sh

index a928cad9fc31ade592262183b585341ecb864ea7..f92857653a25c6d7de66277582e4d61e2420c9ed 100644 (file)
@@ -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