java.lang .Object org.pdfbox.pdmodel.interactive.documentnavigation.destination .PDDestination org.pdfbox.pdmodel.interactive.documentnavigation.destination .PDPageDestination org.pdfbox.pdmodel.interactive.documentnavigation.destination .PDPageFitWidthDestination PDPageFitWidthDestination public class PDPageFitWidthDestination extends PDPageDestination (Code) This represents a destination to a page at a y location and the width is magnified
to just fit on the screen.
author: Ben Litchfield version: $Revision: 1.2 $
Field Summary final protected static String TYPE The type of this destination.final protected static String TYPE_BOUNDED The type of this destination.
Method Summary public booleanfitBoundingBox () A flag indicating if this page destination should just fit bounding box of the PDF.public intgetTop () Get the top y coordinate.public voidsetFitBoundingBox (boolean fitBoundingBox) Set if this page destination should just fit the bounding box.public voidsetTop (int y) Set the top y-coordinate, a value of -1 implies that the current y-coordinate
will be used.
TYPE final protected static String TYPE (Code) The type of this destination.
TYPE_BOUNDED final protected static String TYPE_BOUNDED (Code) The type of this destination.
PDPageFitWidthDestination public PDPageFitWidthDestination()(Code) Default constructor.
PDPageFitWidthDestination public PDPageFitWidthDestination(COSArray arr)(Code) Constructor from an existing destination array.
Parameters: arr - The destination array.
fitBoundingBox public boolean fitBoundingBox()(Code) A flag indicating if this page destination should just fit bounding box of the PDF.
true If the destination should fit just the bounding box.
getTop public int getTop()(Code) Get the top y coordinate. A return value of -1 implies that the current y-coordinate
will be used.
The top y coordinate.
setFitBoundingBox public void setFitBoundingBox(boolean fitBoundingBox)(Code) Set if this page destination should just fit the bounding box. The default is false.
Parameters: fitBoundingBox - A flag indicating if this should fit the bounding box.
setTop public void setTop(int y)(Code) Set the top y-coordinate, a value of -1 implies that the current y-coordinate
will be used.
Parameters: y - The top ycoordinate.
Fields inherited from org.pdfbox.pdmodel.interactive.documentnavigation.destination.PDPageDestination protected COSArray array(Code) (Java Doc)