Top Description Fields Constructors Methods
org.apache.pdfbox.pdmodel.interactive.documentnavigation.destination

public Class PDPageFitHeightDestination

extends PDPageDestination
Class Inheritance
Imports
org.apache.pdfbox.cos.COSArray

This represents a destination to a page at a x location and the height is magnified to just fit on the screen.
Author
Ben Litchfield

Field Summary

Modifier and TypeField and Description
protected static final String
TYPE

The type of this destination.

protected static final String
TYPE_BOUNDED

The type of this destination.

Inherited from org.apache.pdfbox.pdmodel.interactive.documentnavigation.destination.PDPageDestination:
array

Constructor Summary

AccessConstructor and Description
public
PDPageFitHeightDestination()

Default constructor.

public
PDPageFitHeightDestination(COSArray
The destination array.
arr
)

Constructor from an existing destination array.

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true If the destination should fit just the bounding box.
fitBoundingBox
()

A flag indicating if this page destination should just fit bounding box of the PDF.

public int

Returns:

The left x coordinate.
getLeft
()

Get the left x coordinate.

public void
setFitBoundingBox(boolean
A flag indicating if this should fit the bounding box.
fitBoundingBox
)

Set if this page destination should just fit the bounding box.

public void
setLeft(int
The left x coordinate.
x
)

Set the left x-coordinate, a value of -1 implies that the current x-coordinate will be used.

Inherited from org.apache.pdfbox.pdmodel.interactive.documentnavigation.destination.PDPageDestination:
getCOSObjectgetPagegetPageNumberretrievePageNumbersetPagesetPageNumber

Field Detail

TYPEback to summary
protected static final String TYPE

The type of this destination.

TYPE_BOUNDEDback to summary
protected static final String TYPE_BOUNDED

The type of this destination.

Constructor Detail

PDPageFitHeightDestinationback to summary
public PDPageFitHeightDestination()

Default constructor.

PDPageFitHeightDestinationback to summary
public PDPageFitHeightDestination(COSArray arr)

Constructor from an existing destination array.

Parameters
arr:COSArray

The destination array.

Method Detail

fitBoundingBoxback to summary
public boolean fitBoundingBox()

A flag indicating if this page destination should just fit bounding box of the PDF.

Returns:boolean

true If the destination should fit just the bounding box.

getLeftback to summary
public int getLeft()

Get the left x coordinate. A return value of -1 implies that the current x-coordinate will be used.

Returns:int

The left x coordinate.

setFitBoundingBoxback to summary
public void setFitBoundingBox(boolean fitBoundingBox)

Set if this page destination should just fit the bounding box. The default is false.

Parameters
fitBoundingBox:boolean

A flag indicating if this should fit the bounding box.

setLeftback to summary
public void setLeft(int x)

Set the left x-coordinate, a value of -1 implies that the current x-coordinate will be used.

Parameters
x:int

The left x coordinate.