public class PDPageFitWidthDestination extends PDPageDestination
Modifier and Type | Field and Description |
---|---|
protected static String |
TYPE
The type of this destination.
|
protected static String |
TYPE_BOUNDED
The type of this destination.
|
array
Constructor and Description |
---|
PDPageFitWidthDestination()
Default constructor.
|
PDPageFitWidthDestination(COSArray arr)
Constructor from an existing destination array.
|
Modifier and Type | Method and Description |
---|---|
boolean |
fitBoundingBox()
A flag indicating if this page destination should just fit bounding box of the PDF.
|
int |
getTop()
Get the top y coordinate.
|
void |
setFitBoundingBox(boolean fitBoundingBox)
Set if this page destination should just fit the bounding box.
|
void |
setTop(int y)
Set the top y-coordinate, a value of -1 implies that the current y-coordinate
will be used.
|
findPageNumber, getCOSArray, getCOSObject, getPage, getPageNumber, retrieveDestPageNumber, setPage, setPageNumber
create, toString
protected static final String TYPE
protected static final String TYPE_BOUNDED
public PDPageFitWidthDestination()
public PDPageFitWidthDestination(COSArray arr)
arr
- The destination array.public int getTop()
public void setTop(int y)
y
- The top ycoordinate.public boolean fitBoundingBox()
public void setFitBoundingBox(boolean fitBoundingBox)
fitBoundingBox
- A flag indicating if this should fit the bounding box.Copyright © 2002–2017 The Apache Software Foundation. All rights reserved.