Previous Next


                                                     632
           CHAPTER 8                                                             Interactive Features



KEY            TYPE           VALUE

RD             rectangle      (Optional; PDF 1.5) A set of four numbers describing the numerical differences
                              between two rectangles: the Rect entry of the annotation and the actual bound-
                              aries of the underlying square or circle. Such a difference can occur in situations
                              where a border effect (described by BE) causes the size of the Rect to increase be-
                              yond that of the square or circle.
                              The four numbers correspond to the differences in default user space between
                              the left, top, right, and bottom coordinates of Rect and those of the square or cir-
                              cle, respectively. Each value must be greater than or equal to 0. The sum of the
                              top and bottom differences must be less than the height of Rect, and the sum of
                              the left and right differences must be less than the width of Rect.


           Polygon and Polyline Annotations

           Polygon annotations (PDF 1.5) display closed polygons on the page. Such poly-
           gons may have any number of vertices connected by straight lines. Polyline anno-
           tations (PDF 1.5) are similar to polygons, except that the first and last vertex are
           not implicitly connected.

                 TABLE 8.29 Additional entries specific to a polygon or polyline annotation
KEY            TYPE           VALUE

Subtype        name           (Required) The type of annotation that this dictionary describes; must be
                              Polygon or PolyLine for a polygon or polyline annotation, respectively.

Vertices       array          (Required) An array of numbers representing the alternating horizontal and ver-
                              tical coordinates, respectively, of each vertex, in default user space.

LE             array          (Optional; meaningful only for polyline annotations) An array of two names spec-
                              ifying the line ending styles. The first and second elements of the array specify
                              the line ending styles for the endpoints defined, respectively, by the first and last
                              pairs of coordinates in the Vertices array. Table 8.27 shows the possible values.
                              Default value: [ /None /None ].

BS             dictionary     (Optional) A border style dictionary (see Table 8.17 on page 611) specifying the
                              width and dash pattern to be used in drawing the line.
                              Note: The annotation dictionary’s AP entry, if present, takes precedence over the
                              Vertices and BS entries; see Table 8.15 on page 606 and Section 8.4.4, “Appearance
                              Streams.”

Previous Next