COSObjectable
, PDDestinationOrAction
PDPageFitDestination
, PDPageFitHeightDestination
, PDPageFitRectangleDestination
, PDPageFitWidthDestination
, PDPageXYZDestination
public abstract class PDPageDestination extends PDDestination
Modifier and Type | Field | Description |
---|---|---|
protected COSArray |
array |
Storage for the page destination.
|
Modifier | Constructor | Description |
---|---|---|
protected |
PDPageDestination() |
Constructor to create empty page destination.
|
protected |
PDPageDestination(COSArray arr) |
Constructor to create empty page destination.
|
Modifier and Type | Method | 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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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. All rights reserved.