home *** CD-ROM | disk | FTP | other *** search
- %!
- %%VMusage: 0 0
- %%VMlocation: global
- %%
- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- %% %%
- %% OPIProcSet: procedures to go into CommentDict to enable basic %%
- %% OPI processing. %%
- %% %%
- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
-
- /OPIProcSet <<
-
- /Initialise {
- userdict /OPIinitialised? known {
- userdict /OPIinitialised? get
- } {
- false
- } ifelse
- not {
- currentglobal false setglobal
- userdict /OPIdocomment {
- exch OPIdict 3 1 roll put
- } put
- userdict /OPIdoobject {
- /OPIProcSet /ProcSet findresource begin DoObject end
- } put
- userdict /OPIdict 8 dict put
- userdict /OPIinitialised? true put
- setglobal
- } if
- } bind
-
- /CommentDict <<
- /ALDImageFileName {/ALDImageFileName OPIdocomment}
- /ALDImageID {/ALDImageID OPIdocomment}
- /ALDImageCropRect {/ALDImageCropRect OPIdocomment}
- /ALDImagePosition {/ALDImagePosition OPIdocomment}
- /ALDImageColor {/ALDImageColor OPIdocomment}
- /ALDImageTint {/ALDImageTint OPIdocomment}
- /ALDImageTransparency {/ALDImageTransparency OPIdocomment}
- /ALDImageGrayMap {/ALDImageGrayMap OPIdocomment}
- /BeginObject {pop OPIdoobject}
- >>
-
- /DoObject {
- userdict /OPIdict get dup /ALDImageFileName known exch /ALDImageID known or {
- userdict /OPIdict get {OPI_image} stopped {
- (%%[ OPI substitution failed; using low resolution image ]%%) = flush
- pop
- } {
- 1 dict begin
- /junk 2048 string def
- {
- currentfile junk {readline} stopped {
- pop pop
- } {
- not {stop} if
- (%%EndObject) eq {exit} if
- } ifelse
- } loop
- end
- } ifelse
- } if
- } bind
-
- >> /ProcSet defineresource
-
- dup /Initialise get exec
-
-