summaryrefslogtreecommitdiff
path: root/tests/gswfilt.rc
blob: 7ce65af32a187b3f2f773bc209c596d11fff9fc6 (plain)
1
2
3
4
5
6
7
8
9
10
11
# test ghostscript filters
#
# usage: rc gsfilter.rc CCITTFaxDecode '<< ... >>' < in > out
#

builtin gs -q -dBATCH '-sDEVICE=nullpage' -c \
	'/myout (%stdout) (w) file ' ^ $2 ^ ' /' ^ $1 ^ ' filter def
	/myin (%stdin) (r) file def
	/s 1024 string def
	{ myin s readstring { myout s writestring } { myout s writestring myout closefile exit } ifelse } loop'