diff options
author | Martin Skøtt <martin@xenux.dk> | 2003-01-15 17:01:27 +0000 |
---|---|---|
committer | Martin Skøtt <martin@xenux.dk> | 2003-01-15 17:01:27 +0000 |
commit | 0e8888527881dbe6a5eefdd735cfbfbb8619dc60 (patch) | |
tree | 7ecb97322ac050be20a20e718880d136849b60b1 | |
parent | ecfe46ec71f08aed24d0cdb7890b07f2e892f63c (diff) |
Added support for XenuxPDF. The changes have no effect if XenuxPDF
isn't installed so they shouldn't effect existing setups.
-rwxr-xr-x | pdfdistiller | 9 |
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 |