%!PS-Adobe-3.0 EPSF-3.0
%%BoundingBox:
llx lly urx ury
The first required DSC header comment informs the including application
that the file conforms to version 3.0 of the EPSF format as described in this
appendix. This is the version comment.
The second required DSC header comment provides information about the
size of the EPS file and must be present so the including application can
transform and clip the EPS file properly. This is the bounding box comment.
The four arguments of the bounding box comment correspond to the lower-
left (
llx, lly
) and upper-right (
urx, ury
) corners of the bounding box. They are
expressed in the default PostScript coordinate system. For an EPS file, the
bounding box is the smallest rectangle that encloses all the marks painted
on the
single
page of the EPS file. Graphics state information, such as the
current line width and line join parameters, must be considered when calcu-
lating the bounding box. Example 1: shows a minimally conforming EPS file
that draws a square with a line width of 10 units.
Example 1:
%!PS-Adobe-3.0 EPSF-3.0
%%BoundingBox: 5 5 105 105
10 setlinewidth
10 10 moveto
0 90 rlineto 90 0 rlineto 0 -90 rlineto closepath
stroke
The marks painted by Example 1:, and how they are positioned with respect
to the PostScript coordinate system, are illustrated in Figure 2. If the line
width were not considered when calculating the bounding box, the bounding
box would be incorrectly positioned by five units on each side of the square,
causing the application to incorrectly place and clip the imported EPS file.
The bounding box specified for this example is correct.
Figure 2
Calculating the correct bounding box
105
10
10
105
8
(1 May 92)
Home Index Bookmark Pages
Pages: Home Index