org.apache.pdfbox.pdmodel.interactive.documentnavigation.destination
public class: PDPageFitDestination [javadoc |
source]
java.lang.Object
org.apache.pdfbox.pdmodel.interactive.documentnavigation.destination.PDDestination
org.apache.pdfbox.pdmodel.interactive.documentnavigation.destination.PDPageDestination
org.apache.pdfbox.pdmodel.interactive.documentnavigation.destination.PDPageFitDestination
All Implemented Interfaces:
PDDestinationOrAction
This represents a destination to a page and the page contents will be magnified to just
fit on the screen.
Field Summary |
---|
protected static final String | TYPE | The type of this destination. |
protected static final String | TYPE_BOUNDED | The type of this destination. |
Methods from org.apache.pdfbox.pdmodel.interactive.documentnavigation.destination.PDDestination: |
---|
create, toString |
Methods from java.lang.Object: |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method from org.apache.pdfbox.pdmodel.interactive.documentnavigation.destination.PDPageFitDestination Detail: |
public boolean fitBoundingBox() {
return TYPE_BOUNDED.equals( array.getName( 1 ) );
}
A flag indicating if this page destination should just fit bounding box of the PDF. |
public void setFitBoundingBox(boolean fitBoundingBox) {
array.growToSize( 2 );
if( fitBoundingBox )
{
array.setName( 1, TYPE_BOUNDED );
}
else
{
array.setName( 1, TYPE );
}
}
Set if this page destination should just fit the bounding box. The default is false. |