Filer order.
Dyna
dyn_ares at yahoo.com
Thu Sep 24 10:55:32 PDT 2009
Thanks for all the info Michael,
It solved all my problems and I wrote a script to covert color Postscript to gray-scale Postscript before sending it to the printer. It was kind of annoying that the printer didn't honor the "Print Color as Gray" from the PPD. Anyways here is the filter if anyone wants it. All you need is to change the GS variable.
Cheers Dyna
PS: Note the last line is wrapped.
#!/bin/sh
# $Id: ps2grayps,v 0.9 2009/09/23
#
# This is a Postscript to grayscale Postscript
# filter for CUPS
#
# (C) 2009 Dyna <dyn_ares at yahoo.com>
#
# Released under GPL v2
#
# NO WARRANTY AT ALL
#
set -x
set -e
GS=/usr/bin/gs
if [ $# -lt 5 -o $# -gt 6 ]; then
echo "ERROR: $0 job-id user title copies options [file]" >&2
exit 1
fi
# Read from given file.
if [ -n "$6" ]; then
exec <"$6"
fi
tempfiles=
trap 'rm -f $tempfiles' 0 1 2 13 15
infile=$(mktemp -t ps2grayps.XXXXXX)
tempfiles="$tempfiles $infile"
cat >"$infile"
cat "$infile" | ${GS} -q -dBATCH -dPARANOIDSAFER -dNOPAUSE -sDEVICE=ps2write -sOutputFile=- -sColorConversionStrategy=Gray -dProcessColorModel=/DeviceGray -
More information about the cups
mailing list