home *** CD-ROM | disk | FTP | other *** search
- %!
- false setglobal
-
- /defaultobjectformat currentobjectformat def
- /sendstacktop
- {defaultobjectformat setobjectformat 0 printobject 0 1 printobject flush} hardbind def
- /sendstring {dup length sendstacktop sendstacktop} hardbind def
- /sendboolean {{1} {0} ifelse sendstacktop} hardbind def
- /currentcolorspaceNoPattern
- { currentcolorspace dup 0 get /Pattern eq {1 get} if
- } hardbind def
- /currentcolorDict 1 dict def
- /_sendcurrentcolor
- { currentcolor
- currentcolorDict currentcolorspace 0 get get exec
- } hardbind def
- currentcolorDict begin
- /DeviceGray {0 sendstacktop sendstacktop} hardbind def
- /DeviceRGB {1 sendstacktop 3 {sendstacktop} repeat} hardbind def
- /DeviceCMYK {2 sendstacktop 4 {sendstacktop} repeat} hardbind def
- /CIEBasedABC
- { currentcolorspaceNoPattern /NXCalibratedRGBColorSpace load eq {1} {3} ifelse
- sendstacktop 3 {sendstacktop} repeat
- } hardbind def
- /CIEBasedA {4 sendstacktop sendstacktop} hardbind def
- /Pattern
- { 5 sendstacktop
- gsave
- dup dup type /dicttype eq {/PaintType get 2 eq} {false} ifelse
- {pop currentcolorspace 1 get setcolorspace setcolor _sendcurrentcolor}
- {dup /PaintProc get exec}
- ifelse
- -1 sendstacktop
- grestore
- } hardbind def
- /Indexed
- { 6 sendstacktop sendstacktop
- gsave
- currentcolor currentcolorspace 3 get dup xcheck
- {exec}
- {exch numcolorspaceComponents currentcolorspace 1 get
- dup type /arraytype eq {0 get} if get exch 1 index mul exch getinterval {255 div} forall
- } ifelse
- currentcolorspace 1 get setcolorspace setcolor
- _sendcurrentcolor
- grestore
- } hardbind def
- /Separation
- { 7 sendstacktop sendstacktop
- gsave
- currentoverprint sendboolean
- currentcolorspace 1 get dup length string cvs
- dup length sendstacktop sendstacktop
- 1 currentcolorspace 3 get exec
- currentcolorspace 2 get setcolorspace setcolor
- _sendcurrentcolor
- grestore
- } hardbind def
- end
- /sendcurrentcolor
- { gsave mark {{} systemdict /settransfer get exec} stopped
- {cleartomark true} {cleartomark false} ifelse grestore
- not {_sendcurrentcolor} if
- } hardbind def
-
- /fill {sendcurrentcolor fill} hardbind def
- /eofill {sendcurrentcolor eofill} hardbind def
- /stroke {sendcurrentcolor stroke} hardbind def
- /ufill {sendcurrentcolor ufill} hardbind def
- /ueofill {sendcurrentcolor ueofill} hardbind def
- /ustroke {sendcurrentcolor ustroke} hardbind def
- /rectfill {sendcurrentcolor rectfill} hardbind def
- /rectstroke {sendcurrentcolor rectstroke} hardbind def
-
- /oldfindfont /findfont load def
- /_myFontDir 1 dict def
- /infindfont false def
- /findfont
- { /infindfont load
- {findfont}
- { /infindfont true store
- dup type /stringtype eq {dup length string copy cvn} if
- _myFontDir 1 index known
- {_myFontDir exch get}
- { dup findfont
- dup /tmsOrigFontName known not
- { fontdictcopy begin /tmsOrigFontName 1 index def
- mark {1 index /Font findresource pop} stopped {cleartomark true} {pop false} ifelse
- /originalyundefined exch def
- /_myTemporaryFontName currentdict end definefont
- } if
- _myFontDir 3 -1 roll 2 index put
- } ifelse
- /infindfont false store
- } ifelse
- } hardbind def
- /definefont
- { 1 index type /stringtype eq {exch dup length string copy cvn exch} if
- dup /tmsOrigFontName known not
- { dup wcheck not {dup length 2 add dict copy} if
- begin /tmsOrigFontName 1 index def /markedbydefinefont true def currentdict end
- } if
- 1 index exch definefont _myFontDir 3 -1 roll 2 index put
- } hardbind def
- /selectfont
- { exch /findfont load exec exch
- dup type /arraytype eq {makefont} {scalefont} ifelse
- setfont
- } hardbind def
- /getCurrentFontName
- { currentfont dup /tmsOrigFontName known
- {/tmsOrigFontName get}
- {dup /FontName known {/FontName get} {pop /UnknownFont} ifelse}
- ifelse
- } bind def
- /isCurrentFontMarkedbydefinefont
- {currentfont /markedbydefinefont 2 copy known {get} {pop pop false} ifelse} hardbind def
- /isCurrentFontOriginalyundefined
- {currentfont /originalyundefined 2 copy known {get} {pop pop false} ifelse} hardbind def
- /isCurrentFontCreatedByPSFile
- { isCurrentFontMarkedbydefinefont {true}
- {isCurrentFontOriginalyundefined {false} {getCurrentFontName oldfindfont gcheck not} ifelse
- } ifelse
- %dup
- %{ (Font ) print getCurrentFontName dup length string cvs print
- % ( is considered to be created by the document itself\n) print flush
- %} if
- } hardbind def
-
- /sendfontandcolor
- { sendcurrentcolor
- isCurrentFontCreatedByPSFile not
- { 8 sendstacktop
- getCurrentFontName dup length string cvs sendstring
- } if
- } hardbind def
- /show {sendfontandcolor show} hardbind def
- /ashow {sendfontandcolor ashow} hardbind def
- /widthshow {sendfontandcolor widthshow} hardbind def
- /awidthshow {sendfontandcolor awidthshow} hardbind def
- /glyphshow {sendfontandcolor glyphshow} hardbind def
- /kshow {sendfontandcolor kshow} hardbind def
- /xshow {sendfontandcolor xshow} hardbind def
- /yshow {sendfontandcolor yshow} hardbind def
- /xyshow {sendfontandcolor xyshow} hardbind def
-
- /imagecolors 8 dict def
- imagecolors begin
- /DeviceGray {0} def
- /DeviceRGB {1 0 0} def
- /DeviceCMYK {1 1 1 1} def
- /CIEBasedABC {1 0 0} def
- /CIEBasedA {0} def
- /Pattern {currentcolor} def
- /Indexed
- { imagecolors currentcolorspace 1 get setcolorspace currentcolorspace 0 get get exec
- } hardbind def
- /Separation {1} def
- end
- /sendimagecolor
- { imagecolors currentcolorspace 0 get get exec setcolor sendcurrentcolor
- } hardbind def
- /image
- { gsave
- dup type /dicttype ne {/DeviceGray setcolorspace} if sendimagecolor
- grestore
- image
- } hardbind def
- /colorimage
- { gsave
- {/DeviceGray null /DeviceRGB /DeviceCMYK} 1 index 1 sub get setcolorspace sendimagecolor
- grestore
- colorimage
- } hardbind def
- /alphaimage
- { gsave
- {/DeviceGray null /DeviceRGB /DeviceCMYK} 1 index 1 sub get setcolorspace sendimagecolor
- grestore
- alphaimage
- } hardbind def
- /imagemask {sendcurrentcolor imagemask} hardbind def
-
- /showpage {} def
- /erasepage {} def
-
- %% nulldevice causes windowserver death
- 0 0 0 0 Nonretained window windowdeviceround
-