From: Martin Pitt Date: Sun, 31 May 2026 07:11:09 +0000 (+0200) Subject: scandoc: Move to pdfunite X-Git-Url: https://piware.de/gitweb/?a=commitdiff_plain;h=2c8cced00b923a55c633d9a05b38688701271cfc;p=bin.git scandoc: Move to pdfunite From poppler-utils. This works in Debian, pdfmerge is not packaged there. --- diff --git a/scandoc b/scandoc index 3844e5c..012c250 100755 --- a/scandoc +++ b/scandoc @@ -22,11 +22,7 @@ while true; do [ "$x" = q ] && break || true done -# pdfmerge does not get along with just one input file -if [ $PAGE -eq 1 ]; then - mv page*.pdf "$name" -else - pdfmerge page*.pdf "$name" -fi +# poppler-utils +pdfunite page*.pdf "$name" rm -rf "$D"