public abstract class PDPageDestination extends PDDestination
Modifier and Type | Field and Description |
---|---|
protected COSArray |
array
Storage for the page destination.
|
Modifier | Constructor and Description |
---|---|
protected |
PDPageDestination()
Constructor to create empty page destination.
|
protected |
PDPageDestination(COSArray arr)
Constructor to create empty page destination.
|
Modifier and Type | Method and Description |
---|---|
int |
findPageNumber()
Deprecated.
This method has inconsistent behavior (see returns), use
retrieveDestPageNumber() instead. |
COSArray |
getCOSArray()
Convert this standard java object to a COS object.
|
COSBase |
getCOSObject()
Convert this standard java object to a COS object.
|
PDPage |
getPage()
This will get the page for this destination.
|
int |
getPageNumber()
This will get the page number for this destination.
|
int |
retrieveDestPageNumber()
Returns the page number for this destination, regardless of whether this is a page number or
a reference to a page.
|
void |
setPage(PDPage page)
Set the page for this destination.
|
void |
setPageNumber(int pageNumber)
Set the page number for this destination.
|
create, toString
protected COSArray array
protected PDPageDestination()
protected PDPageDestination(COSArray arr)
arr
- A page destination array.public PDPage getPage()
getPageNumber()
should be used.public void setPage(PDPage page)
page
- The page for the destination.public int getPageNumber()
@Deprecated public int findPageNumber()
retrieveDestPageNumber()
instead.PDOutlineItem
public int retrieveDestPageNumber()
PDOutlineItem
public void setPageNumber(int pageNumber)
pageNumber
- The page for the destination.public COSBase getCOSObject()
public COSArray getCOSArray()
Copyright © 2002-2015 The Apache Software Foundation. All Rights Reserved.