org.pdfbox.pdmodel.interactive.documentnavigation.destination
Class PDPageFitDestination
- COSObjectable, PDDestinationOrAction
public class PDPageFitDestination
This represents a destination to a page and the page contents will be magnified to just
fit on the screen.
protected static String | TYPE - The type of this destination.
|
protected static String | TYPE_BOUNDED - The type of this destination.
|
boolean | fitBoundingBox() - A flag indicating if this page destination should just fit bounding box of the PDF.
|
void | setFitBoundingBox(boolean fitBoundingBox) - Set if this page destination should just fit the bounding box.
|
TYPE
protected static final String TYPE
The type of this destination.
TYPE_BOUNDED
protected static final String TYPE_BOUNDED
The type of this destination.
PDPageFitDestination
public PDPageFitDestination()
Default constructor.
PDPageFitDestination
public PDPageFitDestination(COSArray arr)
Constructor from an existing destination array.
arr
- The destination array.
fitBoundingBox
public boolean fitBoundingBox()
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.
setFitBoundingBox
public void setFitBoundingBox(boolean fitBoundingBox)
Set if this page destination should just fit the bounding box. The default is false.
fitBoundingBox
- A flag indicating if this should fit the bounding box.