summaryrefslogtreecommitdiff
path: root/support/pdfjam
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2023-10-20 03:02:28 +0000
committerNorbert Preining <norbert@preining.info>2023-10-20 03:02:28 +0000
commitc9ab6fbcc0f960c5e669419f2565ff121a7f33fd (patch)
tree0f4c2f95a5c127504a5a505ad264255d5db049fb /support/pdfjam
parent05e4c0a34b97237b4cd2f3fb0d5cd03e73b8e55e (diff)
CTAN sync 202310200302
Diffstat (limited to 'support/pdfjam')
-rw-r--r--support/pdfjam/README.md5
-rw-r--r--support/pdfjam/VERSION2
-rwxr-xr-xsupport/pdfjam/bin/pdfjam8
3 files changed, 7 insertions, 8 deletions
diff --git a/support/pdfjam/README.md b/support/pdfjam/README.md
index c2fa576c9f..53ee2ad1c5 100644
--- a/support/pdfjam/README.md
+++ b/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/support/pdfjam/VERSION b/support/pdfjam/VERSION
index 093797fc7e..cdf27f6f63 100644
--- a/support/pdfjam/VERSION
+++ b/support/pdfjam/VERSION
@@ -1 +1 @@
-This is pdfjam 3.09
+This is pdfjam 3.10
diff --git a/support/pdfjam/bin/pdfjam b/support/pdfjam/bin/pdfjam
index 04099e3917..6f9da93d38 100755
--- a/support/pdfjam/bin/pdfjam
+++ b/support/pdfjam/bin/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}" \