From 472241e39efb2eb02f02dbe8fb749c1dbad715a9 Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Sat, 17 Dec 2022 10:49:23 +0100 Subject: [PATCH] scandoc: Move from pdfjam to pdfmerge That is much smaller, and avoids installation of TeXlive. --- scandoc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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" -- 2.39.5