From: Bastian Dehn Date: Tue, 24 Dec 2024 15:11:31 +0000 (+0100) Subject: change scann counter three digits X-Git-Tag: v1.0.1^2~3 X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=b1f94aac42bc132374cce5dc725018d3a30c6ec2;p=scantopdf.git change scann counter three digits --- diff --git a/scantopdf b/scantopdf index 2cba38f..2433024 100755 --- a/scantopdf +++ b/scantopdf @@ -50,12 +50,12 @@ createpdf() local pdfs=() for i in $(seq $start $end); do - countno=$(printf "%02d" $i) + countno=$(printf "%03d" $i) pdfs=$(echo $pdfs "scanned$countno.pdf") done - pdftk $pdfs output out$(printf "%02d" $start).pdf - addocr out$(printf "%02d" $start).pdf + pdftk $pdfs output out$(printf "%03d" $start).pdf + addocr out$(printf "%03d" $start).pdf for i in $pdfs; do rm $i @@ -123,7 +123,7 @@ main() --format=tiff \ --batch-count=$pagecount \ --batch-increment=1 \ - --batch=scanned%02d.tiff + --batch=scanned%03d.tiff if [ $? -gt 0 ]; then echo "ERROR: scan error" diff --git a/scantopdfbw b/scantopdfbw index f149327..6814a87 100755 --- a/scantopdfbw +++ b/scantopdfbw @@ -50,12 +50,12 @@ createpdf() local pdfs=() for i in $(seq $start $end); do - countno=$(printf "%02d" $i) + countno=$(printf "%03d" $i) pdfs=$(echo $pdfs "scanned$countno.pdf") done - pdftk $pdfs output out$(printf "%02d" $start).pdf - addocr out$(printf "%02d" $start).pdf + pdftk $pdfs output out$(printf "%03d" $start).pdf + addocr out$(printf "%03d" $start).pdf for i in $pdfs; do rm $i @@ -124,7 +124,7 @@ main() --format=tiff \ --batch-count=$1 \ --batch-increment=1 \ - --batch=scanned%02d.tiff + --batch=scanned%03d.tiff if [ $? -gt 0 ]; then echo "ERROR: scan error" diff --git a/scantopdfgray b/scantopdfgray index 2abc9ab..eb7fb10 100755 --- a/scantopdfgray +++ b/scantopdfgray @@ -50,12 +50,12 @@ createpdf() local pdfs=() for i in $(seq $start $end); do - countno=$(printf "%02d" $i) + countno=$(printf "%03d" $i) pdfs=$(echo $pdfs "scanned$countno.pdf") done - pdftk $pdfs output out$(printf "%02d" $start).pdf - addocr out$(printf "%02d" $start).pdf + pdftk $pdfs output out$(printf "%03d" $start).pdf + addocr out$(printf "%03d" $start).pdf for i in $pdfs; do rm $i @@ -124,7 +124,7 @@ main() --format=tiff \ --batch-count=$1 \ --batch-increment=1 \ - --batch=scanned%02d.tiff + --batch=scanned%03d.tiff if [ $? -gt 0 ]; then echo "ERROR: scan error"