From 0e8888527881dbe6a5eefdd735cfbfbb8619dc60 Mon Sep 17 00:00:00 2001 From: Martin Skøtt Date: Wed, 15 Jan 2003 17:01:27 +0000 Subject: Added support for XenuxPDF. The changes have no effect if XenuxPDF isn't installed so they shouldn't effect existing setups. --- pdfdistiller | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pdfdistiller b/pdfdistiller index 9a3298f..fac6bd0 100755 --- a/pdfdistiller +++ b/pdfdistiller @@ -79,6 +79,15 @@ else $PDFBIN - $OUTPUTFILENAME >& /dev/null fi +# If the printername resolves to a .xml file and XenuxPDF is installed run it +XENUXPDF="/usr/local/XenuxPDF" +CONFIG="$XENUXPDF/$PRINTER.xml" +if [[ -e "$XENUXPDF/xenuxpdf.py" && -e $CONFIG ]]; then + echo "Calling XenuxPDF" >> $LOGFILE + PYTHONBIN=`which python` + $PYTHONBIN "$XENUXPDF/xenuxpdf.py" $CONFIG $OUTPUTFILENAME >> $LOGFILE 2>&1 +fi + # modify ownership and permissions on the file # - world readable # - owns to user specified in argument -- cgit v1.2.3