From: Martin Pitt Date: Sat, 17 Dec 2022 09:49:23 +0000 (+0100) Subject: scandoc: Move from pdfjam to pdfmerge X-Git-Url: https://piware.de/gitweb/?a=commitdiff_plain;h=472241e39efb2eb02f02dbe8fb749c1dbad715a9;p=bin.git scandoc: Move from pdfjam to pdfmerge That is much smaller, and avoids installation of TeXlive. --- diff --git a/scandoc b/scandoc index f62373c..ebbce60 100755 --- a/scandoc +++ b/scandoc @@ -22,6 +22,11 @@ while true; do [ "$x" = q ] && break || true done -pdfjam --outfile "$name" --fitpaper true --rotateoversize false page*.pdf +# 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 rm -rf "$D"