From fdf0deb7e8f3d06fc4bf2b5ee4024253ba0e4921 Mon Sep 17 00:00:00 2001 From: Dominik George Date: Thu, 17 Nov 2022 13:57:10 +0100 Subject: Use pdfxup instead of pdfnup pdfnup was removed some time in 2021; pdfxup has always been around. --- bin/impressive-display | 8 ++++---- 1 file 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." -- cgit v1.2.3