diff options
-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." |