Package com.datalogics.PDFL
Class RemoteDestination
java.lang.Object
com.datalogics.PDFL.RemoteDestination
A view of a page contained in a separate document. A RemoteDestination is not the same as a ViewDestination; the two objects are not interchangeable.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final doubleConstant used for "null" values in destination rectangles or zoom. -
Constructor Summary
ConstructorsConstructorDescriptionRemoteDestination(Document doc, int pageNum, String fitType, Rect r, double zoom) Construct a RemoteDestination. -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()booleanThe destination rectangle.The fit type.intThe page number of the destination.Retrieve the PDFObject representation of this Remote Destination.doublegetZoom()The zoom factor for the destination.voidsetDestRect(Rect destRect) Set the rectangle for the destination.voidsetFitType(String remoteDestFitType) Set the fit type for the destination.voidsetPageNumber(int remoteDestPageNum) Set the page number of the destination (page numbers start at 0)voidsetZoom(double zoomFactor) 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
-
RemoteDestination
Construct a RemoteDestination.- Parameters:
doc- Document that the RemoteDestination will be created in.pageNum- Page number of the page in the remote document to display.fitType- 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 remoteDestPageNum) Set the page number of the destination (page numbers start at 0) -
getFitType
The fit type. -
setFitType
Set the fit type for the destination. -
getDestRect
The destination rectangle. -
setDestRect
Set the rectangle for the destination. -
getZoom
public double getZoom()The zoom factor for the destination. -
setZoom
public void setZoom(double zoomFactor) Set the zoom factor for the destination. -
getPDFObject
Retrieve the PDFObject representation of this Remote Destination.
-