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 a local destination.
|
void |
setPageNumber(int pageNumber)
Set the page number for a remote 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)
setPageNumber(int pageNumber)
.page
- The page for a local destination.public int getPageNumber()
@Deprecated public int findPageNumber()
retrievePageNumber()
instead.PDOutlineItem
public int retrievePageNumber()
PDOutlineItem
public void setPageNumber(int pageNumber)
setPage(PDPage page)
.pageNumber
- The page for a remote destination.public COSArray getCOSObject()
Copyright © 2002–2018 The Apache Software Foundation. All rights reserved.