home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1996 September
/
PCWK996.iso
/
sharewar
/
95
/
narzedzi
/
ambra
/
ambr32a1.exe
/
FILE
/
ARCHIVE.Z
/
ACROBAT
/
VIEWER32.EXE
/
PSPROCSET
/
11
< prev
next >
Wrap
Text File
|
1996-02-22
|
2KB
|
85 lines
%%BeginFile: pdfimg2.prc
%%Copyright: Copyright 1987-1993 Adobe Systems Incorporated. All Rights Reserved.
% PDF Image Operators for Level 2
PDF /PDFImage get begin
Level2? StartLoad {
% Image data
/ID { % Image Node Contents
5 counttomark 2 idiv % Number of key value pairs
dup 3 1 roll add % Additional entries requested
dict begin % Create the dictionary
{ def } repeat % Def the key-value pairs into dict
cleartomark % Get rid of the mark
currentdict % Put the dictionary on the stack
end
begin
% Establish default attributes if necessary
/ImageType 1 def
/ImageMatrix [ Width 0 0 Height neg 0 Height ] def
/ImageMask here { not } { true } ifelse
{ /ImageMask false def } if
% Establish the current colorspace
ImageMask not { ColorSpace setcolorspace } if
/Intent here { ri } if
% Check the decode array
/Decode here { pop } {
/Decode [
ImageMask {
0 1
} {
currentcolorspace 0 get /Indexed eq {
% 2^n-1 where n = bpc
0 2 BitsPerComponent exp 1 sub
} {
% Determine the number of color components
mark currentcolor counttomark
dup 2 add 1 roll cleartomark
{ 0 1 } repeat
} ifelse
} ifelse
] def
} ifelse
/DataSource here { pop } {
% If Filter is not specified then the default is no filter,
% which indicates binary data. The /Filter may or may not
% be in an array of filters
/DataSource
currentfile
/Filter here { % currentfile filter
dup type /arraytype eq { length } { pop 1 } ifelse
1 sub 0 1 3 -1 roll { % source loopidx
/DecodeParms here { % source loopidx decodeparms
dup type /arraytype eq {
1 index get % source loopidx decodeparm
} if
dup null eq { pop } { exch } ifelse
% source [dp] loopidx
} if
Filter dup type /arraytype eq
{ exch get } { exch pop } ifelse
filter
} for
} if
def
} ifelse
currentdict
/ImageMask here not { false } if
% set Illustrator fill color for imagemask
{ sfc imagemask } { image } ifelse
end
} bd
currentdict readonly pop
} EndLoad % Level2?
end % PDFImage
%%EndFile