
113
9
Working with Bookmarks
This chapter explains how to use the Acrobat core API to create new bookmarks and search for existing
ones. A bookmark is a link with representative text on the Bookmarks tab in the navigation pane. Each
bookmark navigates to a different view or page within a PDF document. You can also use a bookmark to
navigate to a specific destination within a PDF document, to another document (PDF or other), or to a web
page. Bookmarks can also perform actions, such as executing a menu item or displaying a graphic file.
This chapter contains the following information.
About bookmarks
Bookmarks are represented by a
PDBookmark
object. All bookmarks have the following attributes:
●
A title that appears in Adobe Reader or Acrobat.
●
An action that specifies what happens when a user clicks on the bookmark. The typical action for a
bookmark is to move to another location in the current document, although other actions can be
specified.
Every document has a root bookmark. The root bookmark does not represent a physical bookmark that
appears in Adobe Reader or Acrobat, but is the root from which all bookmarks in the tree are descended.
Bookmarks are organized in a tree structure in which each bookmark has zero or more children that
appear indented, and zero or more siblings that appear at the same indentation level. All bookmarks
except the bookmark at the top level of the hierarchy have a parent, the bookmark under which it is
indented. A bookmark is open if its children are visible on screen, and closed if they are not.
The following image shows how bookmarks appear in Adobe Reader or Acrobat.
Topic
Description
See
About bookmarks
Describes the characteristics of a bookmark.
page 113
Creating bookmarks
Describes how to create a bookmark.
page 114
Retrieving bookmarks
Describes how to retrieve bookmarks.
page 118
Deleting bookmarks
Describes how to delete bookmarks.
page 120
Parent bookmark
Child bookmark
Sibling bookmark