# $ApsCVS: src/apsfilter/driver/printiva,v 1.1 2001/11/17 15:21:54 andreas Exp $

POST_FILTER=ppmtocpva

case "$QUALITY" in
	draft|low)	RESOLUTION=300x300
			POST_FILTER_OPTS="$POST_FILTER_OPTS -lowres" ;;
	medium)		RESOLUTION=600x600 ;;
	high|photo)	RESOLUTION=1200x600
			POST_FILTER_OPTS="$POST_FILTER_OPTS -highres -highresinput" ;;
esac

case "$COLOR" in
	full)	PRINTER=ppmraw
		POST_FILTER_OPTS="$POST_FILTER_OPTS -halftone" ;;
	gray)	PRINTER=pgmraw
		POST_FILTER_OPTS="$POST_FILTER_OPTS -black -halftone" ;;
	mono)	PRINTER=pbmraw
		POST_FILTER_OPTS="$POST_FILTER_OPTS -black -mono" ;;
esac

case "$MEDIA" in
	plain)	POST_FILTER_OPTS="$POST_FILTER_OPTS -media paper" ;;
	trans)	POST_FILTER_OPTS="$POST_FILTER_OPTS -media ohp" ;;
	*)	POST_FILTER_OPTS="$POST_FILTER_OPTS -media highgrade" ;;
esac

POST_FILTER_OPTS="$POST_FILTER_OPTS -xshift -0.133in -yshift -0.473in -pagelength ${HEIGHT_INCHES}in -pagewidth ${WIDTH_INCHES}in"
