com.sun.pdfview

Class PDFDestination

public class PDFDestination extends Object

Represents a destination in a PDF file. Destinations take 3 forms: All three of these cases are handled by the getDestination() method.
Field Summary
static intFIT
static intFITB
static intFITBH
static intFITBV
static intFITH
static intFITR
static intFITV
static intXYZ
The known types of destination
Constructor Summary
protected PDFDestination(PDFObject pageObj, int type)
Creates a new instance of PDFDestination
Method Summary
floatgetBottom()
Get the bottom coordinate value
static PDFDestinationgetDestination(PDFObject obj, PDFObject root)
Get a destination from either an array (explicit destination), a name (named destination) or a string (name tree destination).
floatgetLeft()
Get the left coordinate value
PDFObjectgetPage()
Get the PDF Page object associated with this destination
floatgetRight()
Get the right coordinate value
floatgetTop()
Get the top coordinate value
intgetType()
Get the type of this destination
floatgetZoom()
Get the zoom value
voidsetBottom(float bottom)
Set the bottom coordinate value
voidsetLeft(float left)
Set the left coordinate value
voidsetRight(float right)
Set the right coordinate value
voidsetTop(float top)
Set the top coordinate value
voidsetZoom(float zoom)
Set the zoom value

Field Detail

FIT

public static final int FIT

FITB

public static final int FITB

FITBH

public static final int FITBH

FITBV

public static final int FITBV

FITH

public static final int FITH

FITR

public static final int FITR

FITV

public static final int FITV

XYZ

public static final int XYZ
The known types of destination

Constructor Detail

PDFDestination

protected PDFDestination(PDFObject pageObj, int type)
Creates a new instance of PDFDestination

Parameters: pageObj the page object this destination refers to type the type of page this object refers to

Method Detail

getBottom

public float getBottom()
Get the bottom coordinate value

getDestination

public static PDFDestination getDestination(PDFObject obj, PDFObject root)
Get a destination from either an array (explicit destination), a name (named destination) or a string (name tree destination).

Parameters: obj the PDFObject representing this destination root the root of the PDF object tree

getLeft

public float getLeft()
Get the left coordinate value

getPage

public PDFObject getPage()
Get the PDF Page object associated with this destination

getRight

public float getRight()
Get the right coordinate value

getTop

public float getTop()
Get the top coordinate value

getType

public int getType()
Get the type of this destination

getZoom

public float getZoom()
Get the zoom value

setBottom

public void setBottom(float bottom)
Set the bottom coordinate value

setLeft

public void setLeft(float left)
Set the left coordinate value

setRight

public void setRight(float right)
Set the right coordinate value

setTop

public void setTop(float top)
Set the top coordinate value

setZoom

public void setZoom(float zoom)
Set the zoom value