dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles # fast
git clone https://src.adamsgaard.dk/dotfiles.git # slow
Log | Files | Refs | README | LICENSE Back to index

commit db50c8ed46d53adb04293fff85ab98746e8c1465
parent e951fe0d53afc85a0b170ee99ac8d09cdb9e8b34
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Thu,  3 Dec 2020 13:49:39 +0100

geoprint: convert PDFs to a4 before printing

Diffstat:
M.local/bin/geoprint | 8+++++++-
1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/.local/bin/geoprint b/.local/bin/geoprint @@ -33,7 +33,13 @@ fi pass="$(pass Uni/mit.au.dk-217756)" for f in "$@"; do + if [ "${f##*.}" = "pdf" ]; then + out="$(mktemp).pdf" + pdfjam --outfile "$out" --paper a4paper "$f" + else + out="$f" + fi smbclient //prt11.uni.au.dk/1672-129-C-2 \ -U "au217756%${pass}" -W uni \ - -c "print \"$f\"" + -c "print \"$out\"" done