Class RemoteDestination

java.lang.Object
com.datalogics.PDFL.RemoteDestination

public class RemoteDestination extends Object
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 Details

    • NULL_VALUE

      public static final double NULL_VALUE
      Constant used for "null" values in destination rectangles or zoom.
      See Also:
  • Constructor Details

    • RemoteDestination

      public RemoteDestination(Document doc, int pageNum, String fitType, Rect r, double zoom)
      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 Rectangle
      zoom - Zoom level
  • Method Details

    • delete

      public void delete()
    • equals

      public boolean equals(Object rhs)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • 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

      public String getFitType()
      The fit type.

    • setFitType

      public void setFitType(String remoteDestFitType)
      Set the fit type for the destination.
    • getDestRect

      public Rect getDestRect()
      The destination rectangle.
    • setDestRect

      public void setDestRect(Rect destRect)
      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

      public PDFObject getPDFObject()
      Retrieve the PDFObject representation of this Remote Destination.