ViewDestination Class Documentation
classViewDestinationNamespace:com::datalogics::PDFL
Detailed Description
Represents a particular view of a page in a document. A destination describes a place in the PDF document where the user will be taken in response to clicking a hyperlink. The destination defines where a bookmark or hyperlink points to.
The ViewDestination contains a reference to a page, a place (rectangle) on that page, and information specifying how to adjust the view to fit the window's size and shape.
Referenced by
Uses types
Constructor & Destructor Documentation
ViewDestination
Parameters
General purpose constructor: construct with all elements
Member Function Documentation
DisposeChildren
voidDisposeChildren()Returns:
void[static initializer]
static void[static initializer]()delete
synchronized voiddelete(Booleandisposing)Parameters
disposing: Boolean
Returns:
synchronized voiddelete
synchronized voiddelete()Returns:
synchronized voidequals
booleanequals(Objectrhs)Parameters
rhs: Object
Returns:
booleanfinalize
voidfinalize()Returns:
voidgetDestRect
RectgetDestRect()Returns:
The destination rectangle for this view.The destination rectangle. Coordinates with a value of NullValue indicate that the corresponding coordinate is not specified in the destination.
getFitType
StringgetFitType()Returns:
The fit type string for this destination.The fit type describing how the destination page is displayed. The fit type determines how the page content is fitted into the window. Valid fit types are: "XYZ", "Fit", "FitH", "FitV", "FitR", "FitB", "FitBH", and "FitBV".
getPDFArray
PDFArraygetPDFArray()Returns:
The underlying PDF array object for this destination.Retrieve the PDFArray representation of this ViewDestination.
getPageNumber
intgetPageNumber()Returns:
The zero-based page number for this destination.The page number of the destination.
getZoom
doublegetZoom()Returns:
The zoom factor, or NullValue if not set.The zoom factor for the destination. A value of NullValue indicates that the zoom factor is not specified.
sameTypeEquals
booleansameTypeEquals(ViewDestinationarg0)Parameters
arg0: ViewDestination
Returns:
booleansetDestRect
voidsetDestRect(RectViewDestRect)Parameters
ViewDestRect: RectThe rectangle defining the visible area of the destination page.
Returns:
voidSet the destination rectangle of the view.
setFitType
voidsetFitType(StringViewDestFitType)Parameters
ViewDestFitType: StringThe fit type string. Must be one of: "XYZ", "Fit", "FitH", "FitV", "FitR", "FitB", "FitBH", or "FitBV".
Returns:
voidSet the fit type for the view.
setPageNumber
voidsetPageNumber(intViewDestPageNum)Parameters
ViewDestPageNum: intThe zero-based page number to set as the destination.
Returns:
voidSet the page number of the destination starting at 0.
setZoom
voidsetZoom(doubleViewDestZoomFactor)Parameters
ViewDestZoomFactor: doubleThe zoom level to apply when navigating to this destination.
Returns:
voidSet the zoom factor for the destination.
toString
StringtoString()Returns:
A formatted string describing this ViewDestination.Return a string representation of the ViewDestination. The string includes the page number, fit type, destination rectangle, and zoom factor.