home *** CD-ROM | disk | FTP | other *** search
Wrap
%---Sep stuff /CurrentProc{currentscreen exch pop exch pop}bdf /CurrentFreq{currentscreen pop pop}bdf /CurrentAngle{currentscreen pop exch pop}bdf /dopageclip{initmatrix pgl dup pgt moveto pgb lineto pgr pgb lineto pgr pgt lineto pgl pgt lineto closepath clippath newpath}bdf /doSepStuff { /inch {72 mul} bdf /UCRB 0.5 def /UCRM 0.31 def /UCRY 0.48 def /setAngles{/blackAngle edf/yellowAngle edf/magentaAngle edf/cyanAngle edf}bdf /DoColor{color dup 2 copy dup 0 eq{black}if 1 eq{yellow}if 2 eq{magenta}if 3 eq{cyan}if 4 eq{comp}if}bdf /getScale{1 1 rotmtx defaultmatrix dtransform 1 1 dtransform 4 2 roll exch 3 index div exch 2 index div 4 2 roll pop pop}bdf /regMarks{gsave translate getScale scale 0.3 setlinewidth newpath 10 0 moveto 0 0 10 0 360 arc 1 setgray fill 0 setgray 8 0 moveto 0 0 8 0 360 arc -10 0 moveto 10 0 lineto 0 -10 moveto 0 10 lineto stroke 4 0 moveto 0 0 4 0 360 arc fill -4 0 moveto 4 0 lineto 0 -4 moveto 0 4 lineto 1 setgray stroke grestore}bdf /doregmarks{/addamt getScale pop 12 mul abs def systemdict begin pgl addamt add pgb addamt sub regMarks pgl addamt add pgt addamt add regMarks pgr addamt sub pgb addamt sub regMarks pgr addamt sub pgt addamt add regMarks end}def /objColor 4 array def /SepSetUp{/JName edf/Names edf/Marks edf/DocumetName edf}bdf /showJName{ pgl 150 add pgt 10 add moveto DocumetName show}bdf /dooptions{Marks{doregmarks}if JName{showJName}if}bdf /crpln{gsave .3 DocScale div setlinewidth newpath 4 2 roll translate 0 5 2 index mul moveto 0 15 DocScale div 3 -1 roll mul rlineto 5 1 index mul 0 moveto 15 DocScale div mul 0 rlineto systemdict begin 0 setgray end stroke grestore}bdf /Crops{gsave 2 copy 1 1 crpln 3 index exch -1 1 crpln 1 index 1 -1 crpln -1 -1 crpln grestore}bdf /cyan { /color 3 def /addamt getScale pop abs def Freq cyanAngle /CSepProc load setscreen 0 setgray gsave dopageclip systemdict begin 0 setgray end pgl 100 addamt mul add pgb 9 addamt mul sub moveto FontDirectory /GothicBBB-Medium-83pv-RKSJ-H known {/GothicBBB-Medium-83pv-RKSJ-H} {/Times-Roman}ifelse findfont 9 addamt mul scalefont setfont Names{(CYAN) show}if dooptions grestore } def /magenta { /color 2 def /addamt getScale pop abs def Freq magentaAngle /MSepProc load setscreen 0 setgray gsave dopageclip systemdict begin 0 setgray end pgl 200 addamt mul add pgb 9 addamt mul sub moveto FontDirectory /GothicBBB-Medium-83pv-RKSJ-H known {/GothicBBB-Medium-83pv-RKSJ-H} {/Times-Roman}ifelse findfont 9 addamt mul scalefont setfont Names{(MAGENTA) show}if dooptions grestore } def /yellow { /color 1 def /addamt getScale pop abs def Freq yellowAngle /YSepProc load setscreen 0 setgray gsave dopageclip systemdict begin 0 setgray end pgl 300 addamt mul add pgb 9 addamt mul sub moveto FontDirectory /GothicBBB-Medium-83pv-RKSJ-H known {/GothicBBB-Medium-83pv-RKSJ-H} {/Times-Roman}ifelse findfont 9 addamt mul scalefont setfont Names{(YELLOW) show}if dooptions grestore } def /black { /color 0 def /addamt getScale pop abs def Freq blackAngle /BSepProc load setscreen 0 setgray gsave dopageclip systemdict begin 0 setgray end pgl 400 addamt mul add pgb 9 addamt mul sub moveto FontDirectory /GothicBBB-Medium-83pv-RKSJ-H known {/GothicBBB-Medium-83pv-RKSJ-H} {/Times-Roman}ifelse findfont 9 addamt mul scalefont setfont Names{(BLACK) show}if dooptions grestore } def /comp { gsave /addamt getScale pop abs def dopageclip systemdict begin 0 setgray end pgl 100 addamt mul add pgb 9 addamt mul sub moveto FontDirectory /GothicBBB-Medium-83pv-RKSJ-H known {/GothicBBB-Medium-83pv-RKSJ-H} {/Times-Roman}ifelse findfont 9 addamt mul scalefont setfont Names{(Composite) show}if dooptions grestore } def color 4 ne{ COver MOver YOver BOver or or or { /oktodo { currentgray 1 eq { COver{objColor 0 get}{F}ifelse MOver{objColor 1 get}{F}ifelse YOver{objColor 2 get}{F}ifelse BOver{objColor 3 get}{F}ifelse or or or not } {T}ifelse }bdf /stroke{oktodo{systemdict begin stroke end}{newpath}ifelse}bdf /fill{oktodo{systemdict begin fill end}{newpath}ifelse}bdf /eofill{oktodo{systemdict begin eofill end}{newpath}ifelse}bdf /awidthshow{oktodo{systemdict begin awidthshow end}{6{pop}repeat}ifelse}bdf /show{oktodo{systemdict begin show end}{pop}ifelse}bdf }{ /stroke{systemdict begin stroke end}bdf /fill{systemdict begin fill end}bdf /eofill{systemdict begin eofill end}bdf }ifelse /setgray { dup F F F 4 -1 roll 1 ne objColor astore pop color 0 eq { systemdict begin setgray end }{ pop systemdict begin 1 setgray end } ifelse } def /setmkcolor{do_ucrblack 4 1 roll do_correct 4 -1 roll 4 copy 1 1 4{pop 1 ne 4 1 roll}for objColor astore pop}bdf /setcmykcolor { 4 copy 1 1 4{pop 1 ne 4 1 roll}for objColor astore pop color index 1 exch sub systemdict begin setgray end pop pop pop pop } def /setrgbcolor { color 0 eq { setmkcolor systemdict begin setgray end pop pop pop} { setmkcolor pop color 1 sub index systemdict begin setgray end pop pop pop } ifelse } def /do_correct { cvtrgbcym 1 index UCRY mul sub dup 0 lt{ pop 0}if 3 1 roll 1 index UCRM mul sub dup 0 lt{ pop 0}if 3 1 roll 3 1 roll cvtrgbcym } def /do_ucrblack { 3 copy 1 index eq 3 1 roll eq and{pop pop 1 1 1 4 -1 roll}{ cvtrgbcym cmin 3 index cmin /mincolor edf pop pop /ucramt mincolor UCRB sub dup 0 lt{ pop 0} if 2 div def ucramt sub 3 1 roll ucramt sub 3 1 roll ucramt sub 3 1 roll cvtrgbcym ucramt 1.25 mul 1 exch sub}ifelse } def /cvtrgbcym { 3 {1 exch sub 3 1 roll} repeat } def /cmin { 2 copy lt {1}{0} ifelse index } def }if /colorimage {/ncolors edf /multiproc edf color 4 ne{ncolors 1 eq{color 0 eq color 4 eq or{i}{ 3 1 roll pop pop 3 1 roll /h edf /w edf gsave newpath 0 0 moveto 1 0 rlineto 0 1 rlineto -1 0 rlineto closepath erasefill grestore h exch repeat}ifelse}{multiproc{ncolors 4 eq{ /proc3 edf /proc2 edf /proc1 edf /proc0 edf { proc0 color 3 ne{pop}if proc1 color 2 ne{pop}if proc2 color 1 ne{pop}if proc3 color 0 ne{pop}if}i}{ /proc2 edf /proc1 edf /proc0 edf { proc0 /st0 edf proc1 /st1 edf proc2 /st2 edf 0 1 st0 length 1 sub{dup st0 exch get 255.0 div exch dup st1 exch get 255.0 div exch dup st2 exch get 255.0 div exch 4 1 roll do_ucrblack /b edf do_correct /y edf /m edf /c edf color 3 eq{c}if color 2 eq{m}if color 1 eq{y}if color 0 eq{b}if 255.0 mul cvi cvi st0 3 1 roll put}for st0}i}ifelse}{/proc0 edf ncolors 4 eq{{ proc0 dup /st0 edf 0 exch 4 exch length dup 4 div cvi string /st1 edf 4 sub{ color 3 eq{dup st0 exch get}if color 2 eq{dup 1 add st0 exch get}if color 1 eq{dup 2 add st0 exch get}if color 0 eq{dup 3 add st0 exch get}if exch 4 div cvi exch cvi st1 3 1 roll put}for st1}}{{ proc0 dup /st0 edf 0 exch 3 exch length dup 3 div cvi string /st1 edf 3 sub{ dup st0 exch get 255.0 div exch dup 1 add st0 exch get 255.0 div exch dup 2 add st0 exch get 255.0 div exch 4 1 roll do_ucrblack /b edf do_correct /y edf /m edf /c edf color 3 eq{c}if color 2 eq{m}if color 1 eq{y}if color 0 eq{b}if exch 3 div cvi exch cvi 255.0 mul cvi st1 3 1 roll put}for st1}}ifelse i}ifelse}ifelse}{systemdict /colorimage known { multiproc ncolors systemdict /colorimage get exec}{ multiproc not{ncolors icomp}if}ifelse}ifelse}bdf}def