Previous Next


                                                       678
       CHAPTER 8                                                                Interactive Features




                TABLE 8.71 Additional entries common to all fields containing variable text
KEY   TYPE              VALUE

DA    string            (Required; inheritable) The default appearance string containing a sequence of valid
                        page-content graphics or text state operators that define such properties as the field’s
                        text size and color.

Q     integer           (Optional; inheritable) A code specifying the form of quadding (justification) to be
                        used in displaying the text:
                           0    Left-justified
                           1    Centered
                           2    Right-justified
                        Default value: 0 (left-justified).

DS    text string       (Optional; PDF 1.5) A default style string, as described in “Rich Text Strings” on page
                        680.

RV    text string or    (Optional; PDF 1.5) A rich text string, as described in “Rich Text Strings” on page 680.
      text stream

       The new appearance stream becomes the normal appearance (N) in the appear-
       ance dictionary associated with the field’s widget annotation (see Table 8.19 on
       page 614). (If the widget annotation has no appearance dictionary, the viewer ap-
       plication must create one and store it in the annotation dictionary’s AP entry.)

       In PDF 1.5, form fields that have the RichText flag set (see Table 8.77) specify for-
       matting information as described in “Rich Text Strings” on page 680. For these
       fields, the conventions described below are not used, and the entire annotation
       appearance is regenerated each time the value is changed.

       For non-rich text fields, the appearance stream—which, like all appearance
       streams, is a form XObject—has the contents of its form dictionary initialized as
       follows:

       • The resource dictionary (Resources) is created using resources from the inter-
          active form dictionary’s DR entry (see Table 8.67); see also implementation note
          118 in Appendix H.
       • The lower-left corner of the bounding box (BBox) is set to coordinates (0, 0) in
          the form coordinate system. The box’s top and right coordinates are taken from

Previous Next