| 1 |
# $ApsCVS: src/apsfilter/driver/printiva,v 1.1 2001/11/17 15:21:54 andreas Exp $ |
| 2 |
|
| 3 |
POST_FILTER=ppmtocpva |
| 4 |
|
| 5 |
case "$QUALITY" in |
| 6 |
draft|low) RESOLUTION=300x300 |
| 7 |
POST_FILTER_OPTS="$POST_FILTER_OPTS -lowres" ;; |
| 8 |
medium) RESOLUTION=600x600 ;; |
| 9 |
high|photo) RESOLUTION=1200x600 |
| 10 |
POST_FILTER_OPTS="$POST_FILTER_OPTS -highres -highresinput" ;; |
| 11 |
esac |
| 12 |
|
| 13 |
case "$COLOR" in |
| 14 |
full) PRINTER=ppmraw |
| 15 |
POST_FILTER_OPTS="$POST_FILTER_OPTS -halftone" ;; |
| 16 |
gray) PRINTER=pgmraw |
| 17 |
POST_FILTER_OPTS="$POST_FILTER_OPTS -black -halftone" ;; |
| 18 |
mono) PRINTER=pbmraw |
| 19 |
POST_FILTER_OPTS="$POST_FILTER_OPTS -black -mono" ;; |
| 20 |
esac |
| 21 |
|
| 22 |
case "$MEDIA" in |
| 23 |
plain) POST_FILTER_OPTS="$POST_FILTER_OPTS -media paper" ;; |
| 24 |
trans) POST_FILTER_OPTS="$POST_FILTER_OPTS -media ohp" ;; |
| 25 |
*) POST_FILTER_OPTS="$POST_FILTER_OPTS -media highgrade" ;; |
| 26 |
esac |
| 27 |
|
| 28 |
POST_FILTER_OPTS="$POST_FILTER_OPTS -xshift -0.133in -yshift -0.473in -pagelength ${HEIGHT_INCHES}in -pagewidth ${WIDTH_INCHES}in" |