diff options
author | Dominik George <nik@velocitux.com> | 2022-11-17 13:57:10 +0100 |
---|---|---|
committer | Dominik George <nik@velocitux.com> | 2022-11-17 13:57:10 +0100 |
commit | fdf0deb7e8f3d06fc4bf2b5ee4024253ba0e4921 (patch) | |
tree | e7734ec277b806b4ec7af2fa3c18ced03eb1a12e | |
parent | 29d0e36a0c04a56d909df702b124644a55c47f06 (diff) | |
download | impressive-display-fix-pdfnup.tar.gz impressive-display-fix-pdfnup.tar.bz2 impressive-display-fix-pdfnup.zip |
Use pdfxup instead of pdfnupfix-pdfnup
pdfnup was removed some time in 2021; pdfxup has always been around.
-rwxr-xr-x | bin/impressive-display | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/impressive-display b/bin/impressive-display index b07b06b..91d9296 100755 --- a/bin/impressive-display +++ b/bin/impressive-display @@ -32,7 +32,7 @@ # unclutter # pulseaudio # x11-xserver-utils -# texlive-extra-utils (for pdfnup) +# texlive-extra-utils (for pdfxup) # poppler-utils (for pdfinfo) VERSION="0.4.0" @@ -259,10 +259,10 @@ function pdf_is_portrait { function merge_portrait_documents { local pdffile=$1 - if which pdfnup 1>/dev/null ; then + if which pdfxup 1>/dev/null ; then if pdf_is_portrait "$pdffile"; then - cd $(dirname "$pdffile") && pdfnup "$pdffile" && cd - 1>/dev/null - mv "${pdffile/.pdf/-nup.pdf}" "$pdffile" + cd $(dirname "$pdffile") && pdfxup "$pdffile" && cd - 1>/dev/null + mv $(dirname "$pdffile")/pdfxup.pdf "$pdffile" fi else $OUTPUT "WARNING: The pdfnup tool is not installed." |