Previous Next


                                                      654
       CHAPTER 8                                                               Interactive Features



       Go-To Actions

       A go-to action changes the view to a specified destination (page, location, and
       magnification factor). Table 8.49 shows the action dictionary entries specific to
       this type of action.

                          TABLE 8.49 Additional entries specific to a go-to action
KEY   TYPE                 VALUE

S     name                 (Required) The type of action that this dictionary describes; must be GoTo for a
                           go-to action.

D     name,                (Required) The destination to jump to (see Section 8.2.1, “Destinations”).
      byte string,
      or array

       Specifying a go-to action in the A entry of a link annotation or outline item (see
       Tables 8.24 on page 622 and 8.4 on page 585) has the same effect as specifying the
       destination directly with the Dest entry. For example, the link annotation shown
       in Example 8.11, which uses a go-to action, has the same effect as the one in Ex-
       ample 8.9 on page 623, which specifies the destination directly. However, the go-
       to action is less compact and is not compatible with PDF 1.0; therefore, using a
       direct destination is preferable.

       Example 8.11

             93 0 obj
                << /Type /Annot
                    /Subtype /Link
                    /Rect [ 71 717 190 734 ]
                    /Border [ 16 16 1 ]
                    /A << /Type /Action
                            /S /GoTo
                            /D [ 3 0 R /FitR –4 399 199 533 ]
                       >>
                >>
             endobj

Previous Next