summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xpdfdistiller9
1 files changed, 9 insertions, 0 deletions
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