Package com.datalogics.PDFL
Class ViewDestination
java.lang.Object
com.datalogics.PDFL.ViewDestination
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.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final doubleConstant used for "null" values in destination rectangles or zoom. -
Constructor Summary
ConstructorsConstructorDescriptionViewDestination(Document doc, int pageNum, String fitType, Rect r, double zoom) General purpose constructor: construct with all elements -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()booleanThe destination rectangle.The fit type.intThe page number of the destinationRetrieve the PDFObject representation of this objectdoublegetZoom()The zoom factor for the destination.voidsetDestRect(Rect ViewDestRect) Set the destination rectangle of the view.voidsetFitType(String ViewDestFitType) Set the fit type for the viewvoidsetPageNumber(int ViewDestPageNum) Set the page number of the destination starting at 0voidsetZoom(double ViewDestZoomFactor) Set the zoom factor for the destination.toString()
-
Field Details
-
NULL_VALUE
public static final double NULL_VALUEConstant used for "null" values in destination rectangles or zoom.- See Also:
-
-
Constructor Details
-
ViewDestination
General purpose constructor: construct with all elements- Parameters:
doc- Containing documentpageNum- Target page numberfitType- Fit Type must be: "XYZ", "Fit", "FitH", "FitV", "FitR", "FitB", "FitBH", or "FitBV".r- Target rectanglezoom- Zoom level
-
-
Method Details
-
delete
public void delete() -
equals
-
toString
-
getPageNumber
public int getPageNumber()The page number of the destination -
setPageNumber
public void setPageNumber(int ViewDestPageNum) Set the page number of the destination starting at 0 -
getFitType
The fit type. -
setFitType
Set the fit type for the view -
getDestRect
The destination rectangle. -
setDestRect
Set the destination rectangle of the view. -
getZoom
public double getZoom()The zoom factor for the destination. -
setZoom
public void setZoom(double ViewDestZoomFactor) Set the zoom factor for the destination. -
getPDFArray
Retrieve the PDFObject representation of this object
-