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
retrievePageNumber() instead. |
COSArray |
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 |
retrievePageNumber()
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
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()
retrievePageNumber()
instead.PDOutlineItem
public int retrievePageNumber()
PDOutlineItem
public void setPageNumber(int pageNumber)
pageNumber
- The page for the destination.public COSArray getCOSObject()
Copyright © 2002–2016 The Apache Software Foundation. All rights reserved.