home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fresh Fish 8
/
FreshFishVol8-CD2.bin
/
bbs
/
biz
/
pgsprinters-930726.lha
/
PGSprinters
/
PostScript.Prolog
< prev
next >
Wrap
Text File
|
1993-07-26
|
17KB
|
844 lines
%%BeginProlog
% $VER: 2.2.11 06/15/92
%Copyright 1991-1992 Soft-Logik Publishing Corp.
/AsphaltDict dup 153 dict def load begin
%
% some definitions & variables
%
/bdef {bind def} bind def
/xdef {exch def} bdef
/ldef {load def} bdef
/SG /setgray ldef
/dmatrix matrix def
/cmatrix matrix def
/omatrix matrix def
/deltax 0 def
/deltay 0 def
/slant 0 def
/twist 0 def
/xscl 0 def
/yscl 0 def
/eang 0 def
/bang 0 def
/NwScrn false def
%
% drawing definitions
%
/sclm [0 0 0 0 0 0] def
/setscl {
/deltay exch neg def
/deltax exch neg def
100 div /twist xdef
100 div /slant xdef
cmatrix setmatrix deltax neg deltay neg translate
sclm 0 twist cos put
sclm 1 twist sin put
sclm 2 slant sin neg put
sclm 3 slant cos put
sclm concat
/omatrix omatrix currentmatrix def
} bdef
/scl {
deltay add exch
deltax add exch
transform round .2 add exch round .2 add exch itransform
} bdef
/NW {newpath} bdef
/MT {scl moveto} bdef
/LT {scl lineto} bdef
/CRV {scl 6 2 roll scl 6 2 roll scl 6 2 roll curveto} bdef
/AT {
100 div /eang xdef 100 div /bang xdef
/yscl xdef /xscl xdef scl translate
xscl yscl scale 0 0 1 bang eang
arc omatrix setmatrix
} bdef
/AN {
100 div /eang xdef 100 div /bang xdef
/yscl xdef /xscl xdef scl translate
xscl yscl scale 0 0 1 bang eang
arcn omatrix setmatrix
} bdef
/CP {closepath} bdef
/LTYPE {0 setdash setlinewidth} bdef
%
% - BeginDoc -
%
/BeginDoc {
7 dict begin
/FontDict 12 dict def
FontDict begin
/cache true def
/key /mypatternfont def
/patterns 256 array def
/patterncount 1 def
/char 1 def
/mtx [300 72 div 0 0 300 72 div 0 0] matrix invertmatrix def
/height 30 def
/width 30 def
/ctm matrix currentmatrix def
/ptm matrix identmatrix def
/str ( ) def
end
/FontBBox [0 0 FontDict /width get FontDict /height get] def
/FontMatrix FontDict /mtx get def
/Encoding 256 array 0 1 255 {1 index exch dup put} for def
/FontType 3 def
/BuildChar { %def
exch begin
FontDict begin
/char xdef
cache
{width 0 0 0 width height setcachedevice}
{width 0 setcharwidth}
ifelse
width height scale 16 16 true [16 0 0 -16 0 16] {patterns char get} imagemask
end end
} def
FontDict /key get currentdict definefont pop
end
}bdef
%
% angle cx cy cropmark -
%
/cropmark {
gsave translate rotate
newpath
bh 6 add 0 moveto 20 0 rlineto
0 bv 6 add moveto 0 20 rlineto
stroke grestore
} bdef
%
% cx cy regmark -
%
/regmark {
gsave translate
newpath
10 0 moveto 0 0 10 0 360 arc
1 SG fill
8 0 moveto 0 0 8 0 360 arc
-10 0 moveto 10 0 lineto 0 -10 moveto 0 10 lineto
0 SG stroke
4 0 moveto 0 0 4 0 360 arc
fill
-4 0 moveto 4 0 lineto 0 -4 moveto 0 4 lineto
1 SG stroke
grestore
} bdef
%
% cx cy slurgauge -
%
/slurgauge {
gsave translate
newpath
0 0 10 0 360 arc
1 SG fill
0 0 10 0 360 arc
0 SG stroke
36 { 1 0 moveto 0 0 10 -2.5 2.5 arc fill 10 rotate} repeat
grestore
} bdef
%
% string cx cy label -
%
/label {
gsave translate 90 rotate
/Courier findfont 8 scalefont setfont
0 0 moveto show
0 -8 moveto
currentscreen pop exch 20 string cvs show ( lpi ) show
20 string cvs show (\312 ) show
docscale 20 string cvs show (%) show
grestore
} bdef
%
% angle cx cy colorstrip -
%
/boxit {newpath moveto 14 0 rlineto 0 -14 rlineto -14 0 rlineto closepath} def
/colorstrip {
gsave translate rotate
/Courier findfont 6 scalefont setfont
psepmode 0 eq {
0 8 translate
0 1 9 {dup 15 mul 0 boxit 10 div SG fill} for
}if
psepmode 1 eq {
gsave 320 15 translate
0 0 boxit .5 .41 .41 0 setcmykcolor fill
15 0 boxit 0 0 0 .5 setcmykcolor fill
30 0 boxit 1 1 0 0 setcmykcolor fill
45 0 boxit 1 0 1 0 setcmykcolor fill
60 0 boxit 0 1 1 0 setcmykcolor fill
75 0 boxit 1 1 1 0 setcmykcolor fill
1 SG
33 -6 moveto (CM) show
48 -6 moveto (CY) show
63 -6 moveto (MY) show
77 -6 moveto (CMY) show
grestore
pblack 0 ne {0 15 translate (K)} if
pcyan 0 ne {0 0 translate (C)} if
pmagenta 0 ne {160 15 translate (M)} if
pyellow 0 ne {160 0 translate (Y)} if
-6 -6 moveto 0 SG show
0 1 9 {dup 15 mul 0 boxit 10 div SG fill} for
}if
psepmode 2 eq {
320 0 translate
0 1 9 {dup 15 mul 0 boxit 10 div SG fill} for
}if
grestore
} def
%
% tilestring sepmode cyan magenta yellow black
% negative mirror cropmarks manualfeed landscape scale
% documentwidth documentheight paperw paperh tilex tiley tilew tileh
% bh bv frequency angle copies iseps BEGINTILE
%
/begintile {
/iseps xdef
/#copies xdef
/cangle xdef
/cfreq xdef
/bv xdef
/bh xdef
/tileh xdef
/tilew xdef
/tiley xdef
/tilex xdef
/paperh xdef
/paperw xdef
/doch xdef
/docw xdef
/docscale xdef
/landscape xdef
/manual xdef
/cropmarks xdef
/mirror xdef
/negative xdef
/pblack xdef
/pyellow xdef
/pmagenta xdef
/pcyan xdef
/psepmode xdef
/tilename xdef
/dmatrix dmatrix currentmatrix def
bh 0 ge {/bleed true def}{/bleed false def /bh 0 def /bv 0 def}ifelse
iseps {
/cropmarks false def
/bleed false def /bh 0 def bv 0 def
/mirror false def
/negative false def
/manual false def
}
{
statusdict /setpageparams known
{
mirror {statusdict /mirrorprint known {statusdict /mirrorprint true put /mirror false def}if }if
negative {statusdict /negativeprint known {statusdict /negativeprint true put /negative false def}if }if
statusdict begin tileh tilew cropmarks {72 add exch 72 add exch}if 0 0 setpageparams end
}
{
paperw 612 eq paperh 1008 eq and {/legal where{pop legal}if} if
paperw 612 eq paperh 792 eq and {/letter where{pop letter}if} if
} ifelse
} ifelse
/leftclip paperw tilew cropmarks {72 add bh 2 mul add}if sub 2 div def
/topclip paperh tileh cropmarks {72 add bv 2 mul add}if sub 2 div def
leftclip topclip translate
mirror {docw 0 translate -1 1 scale} if
negative {{1 exch sub} settransfer newpath clippath 1 SG fill} if
manual {statusdict /manualfeed known {statusdict /manualfeed true put}if }if
tilex neg tiley neg translate
currentscreen /dproc xdef /dangle xdef /dfreq xdef
/dtrans currenttransfer def
cangle 10000 gt {/cangle dangle def} if
cfreq 10000 gt {/cfreq dfreq def} if
cfreq cangle /dproc load setscreen
psepmode 0 eq {systemdict /setcmykcolor known not
{/setcmykcolor
{1 sub 4 1 roll 3 {3 index add neg dup 0 lt{pop 0}if 3 1 roll}
repeat setrgbcolor pop} bdef}if
/setgray /SG load def
} if
psepmode 1 eq {
pcyan 0 ne {/setcmykcolor {pop pop pop 1 exch sub SG}bdef /setgray {pop 1 SG}bdef } if
pmagenta 0 ne {/setcmykcolor {pop pop 1 exch sub SG pop}bdef /setgray {pop 1 SG}bdef } if
pyellow 0 ne {/setcmykcolor {pop 1 exch sub SG pop pop}bdef /setgray {pop 1 SG}bdef } if
pblack 0 ne {/setcmykcolor {1 exch sub SG pop pop pop}bdef /setgray /SG load def } if
} if
psepmode 2 eq {/setcmykcolor {
pblack 10000 div eq exch
pyellow 10000 div eq and exch
pmagenta 10000 div eq and exch
pcyan 10000 div eq and {0 SG}{1 SG}ifelse}bdef
pblack 10000 eq pyellow 0 eq and pmagenta 0 eq and pcyan 0 eq and
{/setgray /SG load def}{/setgray {pop 1 SG} bdef} ifelse
} if
cropmarks {
mirror {bh 36 add neg bv 36 add translate}{bh 36 add bv 36 add translate}ifelse
gsave
0 SG [] 0 setdash .3 setlinewidth 0 setlinejoin 0 setlinecap
180 tilex tiley cropmark
270 tilex tilew add tiley cropmark
0 tilex tilew add tiley tileh add cropmark
90 tilex tiley tileh add cropmark
tilew 2 div tilex add 18 tiley add tileh add bv add regmark
tilew 2 div tilex add -18 tiley add bv sub regmark
tilex bh sub 18 sub tiley bv sub 18 sub slurgauge
tilex tilew add bh add 18 add tiley tileh add bv add 18 add slurgauge
tilename tilex bh sub 18 sub tiley 18 add label
90 tilex tilew add bh add 18 add tiley 18 add colorstrip
grestore
} if
bleed {
tilex bh sub tiley bv sub moveto
tilex tilew add bh add tiley bv sub lineto
tilex tilew add bh add tiley tileh add bv add lineto
tilex bh sub