diff options
author | Karl Berry <karl@freefriends.org> | 2010-04-30 18:17:54 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2010-04-30 18:17:54 +0000 |
commit | 5cc722828d1314a5cb3aaf9c00f2f7cad1988c95 (patch) | |
tree | ed4d66c4b46433779ee208db6d5af7b3b3e85b40 /Master/texmf-dist/scripts/pdfjam/pdfjam-pocketmod | |
parent | 0e290b30838946f452aa3ea2fd58654e9cc68b1e (diff) |
pdfjam update
git-svn-id: svn://tug.org/texlive/trunk@18056 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/scripts/pdfjam/pdfjam-pocketmod')
-rwxr-xr-x | Master/texmf-dist/scripts/pdfjam/pdfjam-pocketmod | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/Master/texmf-dist/scripts/pdfjam/pdfjam-pocketmod b/Master/texmf-dist/scripts/pdfjam/pdfjam-pocketmod index 0bebe86961c..864f4821140 100755 --- a/Master/texmf-dist/scripts/pdfjam/pdfjam-pocketmod +++ b/Master/texmf-dist/scripts/pdfjam/pdfjam-pocketmod @@ -6,15 +6,16 @@ ## ## Author David Firth (http://go.warwick.ac.uk/dfirth) ## -## This is a simple wrapper for (three runs of) pdfjam, version 2.01 +## This is a simple wrapper for (three runs of) pdfjam, version 2.05 ## ## ## It's hard (?) to set up this particular script to read from /dev/stdin, ## so we'll just insist that the first argument is a file: ## E_USAGE=64 ## for a command line usage error -for arg in "$@"; do - case "$arg" in +for arg +do + case $arg in --batch) printf "pdfjam-pocketmod ERROR: the --batch option is not allowed\n" 1>&2 ; exit "$E_USAGE" ;; @@ -22,6 +23,8 @@ for arg in "$@"; do n='--no-tidy' ;; --quiet | -q) q='-q' ;; + --vanilla) + v='--vanilla' ;; --checkfiles) c='--checkfiles' ;; *) @@ -43,12 +46,12 @@ fi ## That's all the argument checking! ## pageSpec="1-8" ## the default page spec -case "${1}" in +case ${1} in --* | "") ## no page spec was given ;; *) ## a page spec was given, so use it pageSpec="$1" ; shift ;; esac -pdfjam $n $q $c -o /dev/stdout "$sourceFile" "$pageSpec" | pdfjam --angle 180 $n $q -o /dev/stdout /dev/stdin '1,8,7,6' | pdfjam --nup 4x2 --landscape --frame true "$sourceFile" '2-5' /dev/stdin "$@" +pdfjam $n $q $c $v -o /dev/stdout "$sourceFile" "$pageSpec" | pdfjam --angle 180 $n $q $v -o /dev/stdout /dev/stdin '1,8,7,6' | pdfjam --nup 4x2 --landscape --frame true "$sourceFile" '2-5' /dev/stdin "$@" |