File: printiva

package info (click to toggle)
apsfilter 7.2.6-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,544 kB
  • ctags: 61
  • sloc: sh: 457; ansic: 236; perl: 175; makefile: 157
file content (28 lines) | stat: -rw-r--r-- 933 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# $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"