org.pdfbox.pdmodel.interactive.documentnavigation.destination
Class PDPageXYZDestination
- COSObjectable, PDDestinationOrAction
public class PDPageXYZDestination
This represents a destination to a page at an x,y coordinate with a zoom setting.
The default x,y,z will be whatever is the current value in the viewer application and
are not required.
protected static String | TYPE - The type of this destination.
|
int | getLeft() - Get the left x coordinate.
|
int | getTop() - Get the top y coordinate.
|
int | getZoom() - Get the zoom value.
|
void | setLeft(int x) - Set the left x-coordinate, a value of -1 implies that the current x-coordinate
will be used.
|
void | setTop(int y) - Set the top y-coordinate, a value of -1 implies that the current y-coordinate
will be used.
|
void | setZoom(int zoom) - Set the zoom value for the page, a value of -1 implies that the current zoom
will be used.
|
TYPE
protected static final String TYPE
The type of this destination.
PDPageXYZDestination
public PDPageXYZDestination()
Default constructor.
PDPageXYZDestination
public PDPageXYZDestination(COSArray arr)
Constructor from an existing destination array.
arr
- The destination array.
getLeft
public int getLeft()
Get the left x coordinate. A return value of -1 implies that the current x-coordinate
will be used.
getTop
public int getTop()
Get the top y coordinate. A return value of -1 implies that the current y-coordinate
will be used.
getZoom
public int getZoom()
Get the zoom value. A return value of -1 implies that the current zoom
will be used.
- The zoom value for the page.
setLeft
public void setLeft(int x)
Set the left x-coordinate, a value of -1 implies that the current x-coordinate
will be used.
x
- The left x coordinate.
setTop
public void setTop(int y)
Set the top y-coordinate, a value of -1 implies that the current y-coordinate
will be used.
setZoom
public void setZoom(int zoom)
Set the zoom value for the page, a value of -1 implies that the current zoom
will be used.