Bookmark

Overview

Bookmark is a class in Aspose.Pdf FOSS for Java.

Represents a bookmark (outline item) in a PDF document.

Properties

NameTypeAccessDescription
titleStringReadReturns the title of this bookmark.
pageNumberintReadReturns the 1-based page number this bookmark points to.
actionStringReadReturns the action string associated with this bookmark.
childItemsList<Bookmark>ReadReturns the child bookmarks.
levelintReadReturns the nesting level of this bookmark.
destinationExplicitDestinationReadReturns the destination associated with this bookmark.
pageDisplayExplicitDestinationReadReturns the page display destination for this bookmark.
pageDisplay_ZoomdoubleReadReturns the zoom factor from the XYZ destination, or 0 if not set.

Methods

SignatureDescription
Bookmark()Creates a new empty bookmark.
getTitle()StringReturns the title of this bookmark.
setTitle(title: String)Sets the title of this bookmark.
getPageNumber()intReturns the 1-based page number this bookmark points to.
setPageNumber(pageNumber: int)Sets the 1-based page number this bookmark points to.
getAction()StringReturns the action string associated with this bookmark.
setAction(action: String)Sets the action string associated with this bookmark.
getChildItems()List<Bookmark>Returns the child bookmarks.
setChildItems(childItems: List<Bookmark>)Sets the child bookmarks.
getLevel()intReturns the nesting level of this bookmark.
setLevel(level: int)Sets the nesting level of this bookmark.
getDestination()ExplicitDestinationReturns the destination associated with this bookmark.
setDestination(destination: ExplicitDestination)Sets the destination for this bookmark.
setPageDisplay(dest: ExplicitDestination)Sets the page display destination for this bookmark.
getPageDisplay()ExplicitDestinationReturns the page display destination for this bookmark.
getPageDisplay_Zoom()doubleReturns the zoom factor from the XYZ destination, or 0 if not set.
setPageDisplay_Zoom(zoom: double)Sets the zoom factor for the page display.
toString()String

See Also