You are on page 1of 1

%---------------------------------------------------------------------------

% EPS file support


/@BeginEPS{$ngx 0 SetGry 0 J 0 j 1 w[]0 d 10 M false setoverprint @np/EPSDict
200 dict def EPSDict begin @sv SeparationMode/Composite eq InsideDCS or{
/SepMode_5 0 def/SeparationMode/Composite def}if SeparationMode/Composite ne
InsideDCS not and{/colorimage{@gs/sepdict 50 dict def sepdict begin[{1 exch
sub}/exec cvx currenttransfer/exec cvx]cvx settransfer 3 eq/$rgb xd{$rgb{/daq0
xd/daq1 xd/daq2 xd/daq_rgb load}{/daq0 xd/daq1 xd/daq2 xd/daq3 xd/daq_cmyk load
}ifelse}{/daq0 xd/daq_one load}ifelse 2 index 8 eq/8bit xd $ink_5 dup 0 lt exch
3 gt or{pop pop pop exch pop{tcc pop}repeat}{IMAGE}ifelse end @gr}bd/2cmyk{3{
255 exch sub 3 1 roll}repeat 3 copy min min 3{dup 5 -1 roll sub neg exch}
repeat}bd/daq_rgb{/i 0 def/daq2 load exec/daq1 load exec/daq0 load exec dup dup
length 0 exch getinterval/$data xd{8bit{1 index i get 3 index i get 2cmyk 4
$ink_5 neg roll pop pop pop}{pop 0}ifelse $data i 3 -1 roll put/i i 1 add def}
forall pop pop $data}bd/daq_cmyk{/daq3 load exec/daq2 load exec/daq1 load exec
/daq0 load exec 4 $ink_5 neg roll pop pop pop}bd/daq_one{/$in 0 def/$out 0 def
/daq0 load exec dup dup length $rgb{3}{4}ifelse idiv 0 exch getinterval/$data
xd $data{pop 8bit{$rgb{0 index $in 2 add get 1 index $in 1 add get 2 index $in
get 2cmyk}{0 index $in get 1 index $in 1 add get 2 index $in 2 add get 3 index
$in 3 add get}ifelse 4 $ink_5 neg roll pop pop pop}{0}ifelse $data $out 3 -1
roll put/$in $in $rgb{3}{4}ifelse add def/$out $out 1 add def}forall pop $data
}bd/@EPSshow9 where{pop}{/@EPSshow9/show ld/show{GetGry 1 eq currentoverprint
and{pop}{@EPSshow9}ifelse}bd}ifelse/@EPSashow9 where{pop}{/@EPSashow9/ashow ld
/ashow{GetGry 1 eq currentoverprint and{pop pop pop}{@EPSashow9}ifelse}bd}
ifelse/@EPSwidthshow9 where{pop}{/@EPSwidthshow9/widthshow ld/widthshow{GetGry
1 eq currentoverprint and{pop pop pop pop}{@EPSwidthshow9}ifelse}bd}ifelse
/@EPSawidthshow9 where{pop}{/@EPSawidthshow9/awidthshow ld/awidthshow{GetGry 1
eq currentoverprint and{pop pop pop pop pop pop}{@EPSawidthshow9}ifelse}bd}
ifelse/@EPSfill9 where{pop}{/@EPSfill9/fill ld/fill{GetGry 1 eq
currentoverprint and{newpath}{@EPSfill9}ifelse}bd}ifelse/@EPSeofill9 where{pop
}{/@EPSeofill9/eofill ld/eofill{GetGry 1 eq currentoverprint and{newpath}{
@EPSeofill9}ifelse}bd}ifelse/@EPSstroke9 where{pop}{/@EPSstroke9/stroke ld
/stroke{GetGry 1 eq currentoverprint and{newpath}{@EPSstroke9}ifelse}bd}ifelse
}if/@EPSsetcmykcolor9 where{pop}{/@EPSsetcmykcolor9/setcmykcolor ld
/setcmykcolor{currentdict wcheck{@EPSsetcmykcolor9}{1 5 1 roll null
currentoverprint @scc_5 pop}ifelse}bd}ifelse}bd/@EndEPS{@rs end}bd

You might also like