home *** CD-ROM | disk | FTP | other *** search
- %%BeginResource: procset pdflev1
- %%Version: 5.0 11
- %%Copyright: Copyright 1987-2001 Adobe Systems Incorporated. All Rights Reserved.
- %%LanguageLevel: 1
- %%Title: PDF operators, with code specific for Level 1
- /docinitialize {
- PDF begin
- /_defaulthalftone
- /currenthalftone where
- { pop currenthalftone }
- { 4 dict dup begin
- currentscreen
- /SpotFunction exch def
- /Angle exch def
- /Frequency exch def
- /HalftoneType 1 def
- end }
- ifelse
- dd
- end
- PDFVars /docSetupDone true put
- } bd
- /initialize {
- PDFVars /docSetupDone get {_defaulthalftone sethalftone} if
- } bd
- /terminate { } bd
- /pl {
- transform
- 0.25 sub round 0.25 add exch
- 0.25 sub round 0.25 add exch
- itransform
- } bd
- /m { _sa? { pl } if moveto } bd
- /l { _sa? { pl } if lineto } bd
- /c
- {
- _sa? {3 {pl 6 2 roll} repeat} if
- curveto
- } bd
- /ri/pop ld
- /setSA { /_sa? xdd } bd
- /re
- {
- _sa?
- {
- 8 dict begin
- /:h exch def
- /:w exch def
- /:y exch def
- /:x exch def
- :x :y pl
- /:ymin exch def /:xmin exch def
- :x :w add :y :h add pl
- /:ymax exch def /:xmax exch def
- :xmin :ymin moveto
- :xmax :ymin lineto
- :xmax :ymax lineto
- :xmin :ymax lineto
- closepath
- end
- }
- {
- 4 2 roll moveto
- 1 index 0 rlineto
- 0 exch rlineto
- neg 0 rlineto
- closepath
- } ifelse
- } bd
- /q /gsave ld
- /Q /grestore ld
- /AlmostFull?
- { dup maxlength exch length sub 2 le
- } bd
- /Expand
- { 1 index maxlength mul cvi dict
- dup begin exch { def } forall end
- } bd
- /xput {
- 3 2 roll
- dup 3 index known not
- { dup AlmostFull? { 1.5 Expand } if
- } if
- dup 4 2 roll put
- } bd
- /defineRes {
- _categories 1 index known not
- { /_categories _categories 2 index 10 dict xput store
- } if
- _categories exch 2 copy get 5 -1 roll 4 index xput put
- } bd
- /findRes {
- _categories exch get exch get
- } bd
- /L1setcolor {
- aload length
- dup 0 eq
- { pop .5 setgray }
- { dup 1 eq
- { pop setgray }
- { 3 eq
- { setrgbcolor }
- { setcmykcolor }
- ifelse }
- ifelse }
- ifelse
- } bind dd
- /setoverprint where
- { pop }
- { /setoverprint { pop } bd }
- ifelse
- /_safeput
- {
- Level1?
- {
- 2 index load dup dup length exch maxlength ge
- { dup length 5 add dict copy
- 3 index xdd
- }
- { pop }
- ifelse
- }
- if
- 3 -1 roll load 3 1 roll put
- }
- bd
- Level1?
- {
- /pdf_CopyDict
- {
- 1 index length add dict
- 1 index wcheck
- { copy }
- { begin
- {def} forall
- currentdict
- end
- }
- ifelse
- }
- def
- }
- if
- /getrampcolor {
- /indx exch def
- [
- 0 1 NumComp 1 sub {
- dup
- Samples exch get
- dup type /stringtype eq { indx get } if
- exch
- Scaling exch get aload pop
- 3 1 roll
- mul add
- } for
- ]
- L1setcolor
- } bd
- /GenStrips {
- 40 dict begin
- /background exch def
- /ext1 exch def
- /ext0 exch def
- /BBox exch def
- /y2 exch def
- /x2 exch def
- /y1 exch def
- /x1 exch def
- /rampdict exch def
- gsave
- BBox length 0 gt {
- newpath
- BBox 0 get BBox 1 get moveto
- BBox 2 get BBox 0 get sub 0 rlineto
- 0 BBox 3 get BBox 1 get sub rlineto
- BBox 2 get BBox 0 get sub neg 0 rlineto
- closepath
- clip
- newpath
- } if
- x1 x2 eq
- {
- y1 y2 lt {/theta 90 def}{/theta 270 def} ifelse
- }
- {
- /slope y2 y1 sub x2 x1 sub div def
- /theta slope 1 atan def
- x2 x1 lt y2 y1 ge and { /theta theta 180 sub def} if
- x2 x1 lt y2 y1 le and { /theta theta 180 add def} if
- }
- ifelse
- gsave
- clippath
- x1 y1 translate
- theta rotate
- { pathbbox } stopped
- { 0 0 0 0 } if
- /yMax exch def
- /xMax exch def
- /yMin exch def
- /xMin exch def
- grestore
- xMax xMin eq yMax yMin eq or
- {
- grestore
- end
- }
- {
- rampdict begin
- 20 dict begin
- background length 0 gt { background L1setcolor gsave clippath fill grestore } if
- gsave
- x1 y1 translate
- theta rotate
- /xStart 0 def
- /xEnd x2 x1 sub dup mul y2 y1 sub dup mul add 0.5 exp def
- /ySpan yMax yMin sub def
- /numsteps NumSamples def
- /rampIndxInc 1 def
- /subsampling false def
- xStart 0 transform
- xEnd 0 transform
- 3 -1 roll
- sub dup mul
- 3 1 roll
- sub dup mul
- add 0.5 exp 72 div
- 0 72 matrix defaultmatrix dtransform dup mul exch dup mul add sqrt
- 72 0 matrix defaultmatrix dtransform dup mul exch dup mul add sqrt
- 1 index 1 index lt { exch } if pop
- mul
- /numpix exch def
- numpix 0 ne
- {
- NumSamples numpix div 0.5 gt
- {
- /numsteps numpix 2 div round cvi dup 1 le { pop 2 } if def
- /rampIndxInc NumSamples 1 sub numsteps div def
- /subsampling true def
- } if
- } if
- ext0 {
- 0 getrampcolor
- xMin xStart lt
- { xMin yMin xMin neg ySpan rectfill } if
- } if
- /xInc xEnd xStart sub numsteps div def
- /x xStart def
- 0
- numsteps
- {
- dup
- subsampling { round cvi } if
- getrampcolor
- x yMin xInc ySpan rectfill
- /x x xInc add def
- rampIndxInc add
- }
- repeat
- pop
- ext1 {
- xMax xEnd gt
- { xEnd yMin xMax xEnd sub ySpan rectfill } if
- } if
- grestore
- grestore
- end
- end
- end
- } ifelse
- } bd
- /RadialShade {
- 40 dict begin
- /background exch def
- /ext1 exch def
- /ext0 exch def
- /BBox exch def
- /r2 exch def
- /c2y exch def
- /c2x exch def
- /r1 exch def
- /c1y exch def
- /c1x exch def
- /rampdict exch def
- gsave
- BBox length 0 gt {
- newpath
- BBox 0 get BBox 1 get moveto
- BBox 2 get BBox 0 get sub 0 rlineto
- 0 BBox 3 get BBox 1 get sub rlineto
- BBox 2 get BBox 0 get sub neg 0 rlineto
- closepath
- clip
- newpath
- } if
- gsave
- clippath
- pathbbox
- /BByMax exch def
- /BBxMax exch def
- /BByMin exch def
- /BBxMin exch def
- grestore
- BBxMax BBxMin eq BByMax BByMin eq or
- {
- grestore
- end
- }
- {
- rampdict begin
- 20 dict begin
- background length 0 gt { background L1setcolor gsave clippath fill grestore } if
- /areaOfConcern
- BBxMin BByMin BBxMax BByMax
- BBxMin BByMin
- BBxMax BBxMin sub 0
- 0 BByMax BByMin sub
- BBxMin BBxMax sub 0
- 12 packedarray
- < 0B 00 01 04 04 04 0A>
- 2 packedarray
- def
- c1x c2x sub dup mul
- c1y c2y sub dup mul
- add 0.5 exp
- r1 add
- r2 sub
- abs
- 0 dtransform
- dup mul exch dup mul add 0.5 exp 72 div
- 0 72 matrix defaultmatrix dtransform dup mul exch dup mul add sqrt
- 72 0 matrix defaultmatrix dtransform dup mul exch dup mul add sqrt
- 1 index 1 index lt { exch } if pop
- /hires exch def
- hires mul
- /numpix exch def
- /numsteps NumSamples def
- /rampIndxInc 1 def
- /subsampling false def
- numpix 0 ne
- {
- NumSamples numpix div 0.5 gt
- {
- /numsteps numpix 2 div round cvi dup 1 le { pop 2 } if def
- /rampIndxInc NumSamples 1 sub numsteps div def
- /subsampling true def
- } if
- } if
- /xInc c2x c1x sub numsteps div def
- /yInc c2y c1y sub numsteps div def
- /rInc r2 r1 sub numsteps div def
- /cx c1x def
- /cy c1y def
- /radius r1 def
- newpath
- xInc 0 eq yInc 0 eq rInc 0 eq and and
- {
- 0 getrampcolor
- cx cy radius 0 360 arc
- stroke
- NumSamples 1 sub getrampcolor
- cx cy radius 72 hires div add 0 360 arc
- 0 setlinewidth
- stroke
- }
- {
- 0
- numsteps
- {
- dup
- subsampling { round cvi } if
- getrampcolor
- cx cy radius 0 360 arc
- /cx cx xInc add def
- /cy cy yInc add def
- /radius radius rInc add def
- cx cy radius 360 0 arcn
- eofill
- rampIndxInc add
- }
- repeat
- pop
- } ifelse
- grestore
- end
- end
- end
- } ifelse
- } bd
- %%EndResource
-