summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/scripts/pdfjam/pdfjoin
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/scripts/pdfjam/pdfjoin')
-rwxr-xr-xMaster/texmf-dist/scripts/pdfjam/pdfjoin25
1 files changed, 25 insertions, 0 deletions
diff --git a/Master/texmf-dist/scripts/pdfjam/pdfjoin b/Master/texmf-dist/scripts/pdfjam/pdfjoin
new file mode 100755
index 00000000000..02c397fc31d
--- /dev/null
+++ b/Master/texmf-dist/scripts/pdfjam/pdfjoin
@@ -0,0 +1,25 @@
+#!/bin/sh
+##
+## pdfjoin: A shell program to concatenate PDF files
+##
+## Author David Firth (http://go.warwick.ac.uk/dfirth)
+##
+## This is a simple wrapper for pdfjam, version 2.01
+##
+E_USAGE=64 ## for a command line usage error
+for arg in "$@"; do
+ case "$arg" in
+ --batch)
+ printf "pdfjoin ERROR: the --batch option is not allowed\n" 1>&2;
+ exit "$E_USAGE" ;;
+ --orient) ## this was allowed in previous versions of pdfjoin
+ printf "pdfjoin ERROR: the --orient option is not allowed,\n" 1>&2;
+ printf " use --landscape or --no-landscape to specify\n" 1>&2;
+ printf " the output page orientation" 1>&2;
+ exit "$E_USAGE" ;;
+ *) continue ;;
+ esac
+done
+pdfjam --fitpaper true --rotateoversize true --suffix joined "$@"
+
+