| Modifier and Type | Field and Description |
|---|---|
| protected final COSArray | array
Storage for the page destination. |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected | PDPageDestination(COSArray
A page destination array. arr)Constructor to create empty page destination. |
| Modifier and Type | Method and Description |
|---|---|
| public COSArray | Returns: The cos object that matches this Java object.Implements org. Convert this standard java object to a COS object. |
| public PDPage | |
| public int | Returns: The zero-based page number for this destination.This will get the page number for this destination. |
| private int | |
| public int | Returns: the 0-based page number, or -1 if the destination type is unknown.Returns the page number for this destination, regardless of whether this is a page number or a reference to a page. |
| public void | |
| public void | setPageNumber(int
The page for a remote destination. pageNumber)Set the page number for a remote destination. |
| array | back to summary |
|---|---|
| protected final COSArray array Storage for the page destination. | |
| PDPageDestination | back to summary |
|---|---|
| protected PDPageDestination() Constructor to create empty page destination. | |
| PDPageDestination | back to summary |
|---|---|
| protected PDPageDestination(COSArray arr) Constructor to create empty page destination.
| |
| getCOSObject | back to summary |
|---|---|
| public COSArray getCOSObject() Implements org. Convert this standard java object to a COS object. | |
| getPage | back to summary |
|---|---|
| public PDPage getPage() This will get the page for this destination. A page destination can either reference a page
(for a local destination) or a page number (when doing a remote destination to another PDF).
If this object is referencing by page number then this method will return null and
| |
| getPageNumber | back to summary |
|---|---|
| public int getPageNumber() This will get the page number for this destination. A page destination can either reference a page (for a local destination) or a page number (when doing a remote destination to another PDF). If this object is referencing by page number then this method will return that number, otherwise -1 will be returned.
| |
| indexOfPageTree | back to summary |
|---|---|
| private int indexOfPageTree(COSDictionary pageDict) | |
| retrievePageNumber | back to summary |
|---|---|
| public int retrievePageNumber() Returns the page number for this destination, regardless of whether this is a page number or a reference to a page.
| |
| setPage | back to summary |
|---|---|
| public void setPage(PDPage page) Set the page for a local destination. For an external destination, call
| |
| setPageNumber | back to summary |
|---|---|
| public void setPageNumber(int pageNumber) Set the page number for a remote destination. For an internal destination, call
| |