BookmarkLayer

BookmarkLayer

Bookmarks manager

Constructor

# new BookmarkLayer()

Source:

Members

# allBookmarks

All bookmarks items.

# bookmarksFullyExpanded

If true, on first open bookmarks it will show bookmarks fully expaned. In next openings, if it will be expanded or collapsed depends on the property value of preserveBookmarksState.

Default false.

# preserveBookmarksState

If false, on every open bookmarks it will show bookmarks fully expaned or collapsed based on the property value of bookmarksFullyExpanded.

Default: true

# showBookmarksOnOpen

If true it will automatically open bookmarks when the document is loaded. If the document doesn't have bookmarks nothing will happen.

Default: false

Methods

# loadBookmarks()

Read all bookmarks (if they exist) from the PDF document and fill its value in related GUI elements.

# reset()

Resets bookmarks and its GUI elements.

# show()

Based on val parameter shows or hides bookmarks.