diff options
author | Karl Berry <karl@freefriends.org> | 2023-10-19 20:05:43 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2023-10-19 20:05:43 +0000 |
commit | 6d180935353dd69a5bb220bf884281b5e7d5025a (patch) | |
tree | d6041f4ef7dcdd3dac11c98bb79847a39e8009d7 /Master | |
parent | f1ef8665f759f9494401094abc2a306bdd151b3c (diff) |
pdfjam (19oct23)
git-svn-id: svn://tug.org/texlive/trunk@68597 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rw-r--r-- | Master/texmf-dist/doc/man/man1/pdfjam.man1.pdf | bin | 13846 -> 13846 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/support/pdfjam/README.md | 5 | ||||
-rw-r--r-- | Master/texmf-dist/doc/support/pdfjam/VERSION | 2 | ||||
-rw-r--r-- | Master/texmf-dist/doc/support/pdfjam/tests.zip | bin | 94791 -> 94790 bytes | |||
-rwxr-xr-x | Master/texmf-dist/scripts/pdfjam/pdfjam | 8 |
5 files changed, 7 insertions, 8 deletions
diff --git a/Master/texmf-dist/doc/man/man1/pdfjam.man1.pdf b/Master/texmf-dist/doc/man/man1/pdfjam.man1.pdf Binary files differindex 5dd3295b03d..e5165c73680 100644 --- a/Master/texmf-dist/doc/man/man1/pdfjam.man1.pdf +++ b/Master/texmf-dist/doc/man/man1/pdfjam.man1.pdf diff --git a/Master/texmf-dist/doc/support/pdfjam/README.md b/Master/texmf-dist/doc/support/pdfjam/README.md index c2fa576c9fb..53ee2ad1c57 100644 --- a/Master/texmf-dist/doc/support/pdfjam/README.md +++ b/Master/texmf-dist/doc/support/pdfjam/README.md @@ -33,10 +33,7 @@ one or more PDF files as output. It is useful for joining files together, selecting pages, reducing several source pages onto one output page, etc., etc. A potential drawback of `pdfjam` and other scripts based upon it is that any -hyperlinks in the source PDF are lost. On the positive side, there is no -appreciable degradation of image quality in processing PDF files with `pdfjam`, -unlike some other indirect methods such as `pdf2ps|psnup|ps2pdf` -(in the author's experience). +hyperlinks in the source PDF are lost. `pdfjam` is designed for Unix-like systems, including Linux and Mac OS X. It seems that it will work also on Windows computers with a suitable diff --git a/Master/texmf-dist/doc/support/pdfjam/VERSION b/Master/texmf-dist/doc/support/pdfjam/VERSION index 093797fc7e1..cdf27f6f63e 100644 --- a/Master/texmf-dist/doc/support/pdfjam/VERSION +++ b/Master/texmf-dist/doc/support/pdfjam/VERSION @@ -1 +1 @@ -This is pdfjam 3.09 +This is pdfjam 3.10 diff --git a/Master/texmf-dist/doc/support/pdfjam/tests.zip b/Master/texmf-dist/doc/support/pdfjam/tests.zip Binary files differindex ab150d06196..1597c263b10 100644 --- a/Master/texmf-dist/doc/support/pdfjam/tests.zip +++ b/Master/texmf-dist/doc/support/pdfjam/tests.zip diff --git a/Master/texmf-dist/scripts/pdfjam/pdfjam b/Master/texmf-dist/scripts/pdfjam/pdfjam index 04099e3917b..6f9da93d383 100755 --- a/Master/texmf-dist/scripts/pdfjam/pdfjam +++ b/Master/texmf-dist/scripts/pdfjam/pdfjam @@ -1,5 +1,5 @@ #!/bin/sh -version=3.09 +version=3.10 ######################################################################### ## ## ## pdfjam: A shell-script interface to the "pdfpages" LaTeX package ## @@ -759,8 +759,9 @@ while test -n "${1}${2}"; do *) ## if page spec needed, assume this is it; ## otherwise something is wrong if test "$pageSpecAwaited" = true ; then + escapedFilePath=$(printf '%s' "$1" | sed -e 's#/#\\/#g') fileSpec=$(printf "%s" "$fileSpec" | \ - sed "s/|awaited/|$1/g") + sed "s/|awaited/|${escapedFilePath}/g") pageSpecAwaited=false else error_exit "no PDF/JPG/PNG file found at ${1}" \ @@ -783,8 +784,9 @@ while test -n "${1}${2}"; do *) ## if page spec needed, assume this is it; ## otherwise something is wrong if test "$pageSpecAwaited" = true ; then + escapedFilePath=$(printf '%s' "$1" | sed -e 's#/#\\/#g') fileSpec=$(printf "%s" "$fileSpec" | \ - sed "s/|awaited/|$1/g") + sed "s/|awaited/|${escapedFilePath}/g") pageSpecAwaited=false else error_exit "no PDF/JPG/PNG file found at ${1}" \ |