7
EPS Example
The following example illustrates the proper use of DSC comments in a
typical page description that an application might produce when including an
EPS file. For an EPS file that is represented as
%!PS-Adobe-3.0 EPSF-3.0
%%BoundingBox: 4 4 608 407
%%Title: (ARTWORK.EPS)
%%CreationDate: (10/17/89) (5:04 PM)
%%EndComments
...PostScript code for illustration..
showpage
%%EOF
the including document’s page description, including the imported EPS file,
would be represented as
%!PS-Adobe-3.0
%%BoundingBox: 0 0 612 792
%%Creator: SomeApplication
%%Title: (Smith.Text)
%%CreationDate: 11/9/89 (19:58)
%%Pages: 1
%%DocumentFonts: Times-Roman Times-Italic
%%DocumentNeededFonts: Times-Roman Times-Italic
%%EndComments
%%BeginProlog
/ms {moveto show} bind def
/s /show load def
/SF { %/FontIndex FontSize /FontName SF --
findfont exch scalefont dup setfont def
} bind def
/sf /setfont load def
/rect { % llx lly w h % Used to create a clipping path
4 2 roll moveto
1 index 0 rlineto
0 exch rlineto
neg 0 rlineto
closepath
} bind def
/BeginEPSF { %def
% Prepare for EPS file
/b4_Inc_state save def% Save state for cleanup
/dict_count countdictstack def
/op_count count 1 sub def % Count objects on op stack
userdict begin
% Make userdict current dict
/showpage { } def
% Redefine showpage to be null
7 EPS Example
27
Home Index Bookmark Pages
Pages: Home Index