scandoc: Use pdfjam directly
[bin.git] / scandoc
diff --git a/scandoc b/scandoc
index ad18a109ad0577309dc0d7d0d2bbe1c82f00c349..f62373cb379c4a795723e2fa57175caca7cd215f 100755 (executable)
--- a/scandoc
+++ b/scandoc
@@ -22,6 +22,6 @@ while true; do
     [ "$x" = q ] && break || true
 done
 
-pdfjoin --outfile "$name" page*.pdf
+pdfjam --outfile "$name" --fitpaper true --rotateoversize false page*.pdf
 
 rm -rf "$D"