Bookmark

Overview

Bookmark is a class in Aspose.PDF FOSS for .NET.

A single bookmark extracted from a document’s outline tree by ExtractBookmarks().

Properties: Action, BoldFlag, ChildItem, ChildItems, CustomAcorbatViewerMenuActionName, Destination, and 13 more.

Properties

NameTypeAccessDescription
Titlestring?Read/WriteThe bookmark title.
PageNumberintRead/Write1-based page number the bookmark targets, or 0 if the destination cannot be resolved.
Destinationstring?Read/WriteThe destination as a string.
Actionstring?Read/WriteThe action type identifier (“GoTo”, “URI”, “Launch”, etc.) when the outline item carries an /A action entry.
BoldFlagboolRead/WriteTrue when the bookmark title is rendered in bold.
ItalicFlagboolRead/WriteTrue when the bookmark title is rendered in italic.
LevelintRead/WriteNesting level: 1 for top-level, 2 for first-level children, …
PageDisplaystring?Read/WriteThe /F (Fit) display mode string from the destination, or null.
RemoteFilestring?Read/WriteThe remote file path for GoToR-style bookmarks, or null.
TitleColorSystem.Drawing.ColorRead/WriteTitle rendering color (defaults to black when /C is absent).
ChildItemsBookmarksRead/WriteChild bookmarks in the original outline tree.
ChildItemBookmarksRead/WriteSingular alias for ChildItems.
OpenboolRead/WriteTrue when the bookmark renders its child outline items expanded.
PageDisplay_LeftintRead/WriteExplicit-destination /XYZ left coordinate.
PageDisplay_TopintRead/WriteExplicit-destination /XYZ top coordinate.
PageDisplay_RightintRead/WriteExplicit-destination /FitR right coordinate.
PageDisplay_BottomintRead/WriteExplicit-destination /FitR bottom coordinate.
PageDisplay_ZoomintRead/WriteExplicit-destination /XYZ zoom factor (0 = inherit).
CustomAcorbatViewerMenuActionNameSystem.Enum[]?Read/WriteCustom Acrobat viewer menu actions associated with the bookmark.

See Also