ViewDestination Class Documentation

classViewDestination

Namespace: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.

Constructor & Destructor Documentation

ViewDestination

ViewDestination(Documentdoc, intpageNum, StringfitType, Rectr, doublezoom)

Parameters

doc: Document

Containing document

pageNum: int

Target page number

fitType: String

Fit Type must be: "XYZ", "Fit", "FitH", "FitV", "FitR", "FitB", "FitBH", or "FitBV".

r: Rect

Target rectangle

zoom: double

Zoom level

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 void

delete

synchronized voiddelete()

Returns:

synchronized void

equals

booleanequals(Objectrhs)

Parameters

rhs: Object

Returns:

boolean

finalize

voidfinalize()

Returns:

void

getDestRect

RectgetDestRect()

Returns:

Rect

The destination rectangle.

getFitType

StringgetFitType()

Returns:

String

The fit type.

getPDFArray

PDFArraygetPDFArray()

Returns:

PDFArray

Retrieve the PDFObject representation of this object

getPageNumber

intgetPageNumber()

Returns:

int

The page number of the destination

getZoom

doublegetZoom()

Returns:

double

The zoom factor for the destination.

setDestRect

voidsetDestRect(RectViewDestRect)

Parameters

ViewDestRect: Rect

Returns:

void

Set the destination rectangle of the view.

setFitType

voidsetFitType(StringViewDestFitType)

Parameters

ViewDestFitType: String

Returns:

void

Set the fit type for the view

setPageNumber

voidsetPageNumber(intViewDestPageNum)

Parameters

ViewDestPageNum: int

Returns:

void

Set the page number of the destination starting at 0

setZoom

voidsetZoom(doubleViewDestZoomFactor)

Parameters

ViewDestZoomFactor: double

Returns:

void

Set the zoom factor for the destination.

toString

StringtoString()

Returns:

String