New eXperiences, New Technologies
« cupsmail
tifftopdf on cups, enhanced
Hi,
trying to print some tiff I got tons of resize errors… so I decided to write a simple wrapper for tiff2pdf and pdftopdf for CUPS.
#!/bin/sh TMP_FILE=$(mktemp) tiff2pdf "$6" > $TMP_FILE 2> /dev/null /usr/lib/cups/filter/pdftopdf "$1" "$2" "$3" "$4" "$5" "$TMP_FILE" rm -f "$TMP_FILE" 2> /dev/null
Name this file “tifftopdf” and put it in /usr/lib/cups/filter. Make it executable and modify your /usr/share/cups/mime/mime.conv in order to use it instead of imagetopdf.
Enjoy!
Nicola
Recent Comments