XYZExplicitDestination
Overview
XYZExplicitDestination is a class in Aspose.PDF FOSS for Java.
Inherits from: ExplicitDestination.
XYZ explicit destination (ISO 32000-1:2008, Table 151).
This class provides 9 methods for working with XYZExplicitDestination objects in Java programs.
Available methods include: XYZExplicitDestination, fromPdfArray, getLeft, getPage, getPageNumber, getTop, getZoom, toPdfArray.
All public members are accessible to any Java application after installing the Aspose.PDF FOSS for Java package.
Properties: left, page, pageNumber, top, zoom.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
left | double | Read | Returns the left coordinate, or NaN if unspecified. |
top | double | Read | Returns the top coordinate, or NaN if unspecified. |
zoom | double | Read | Returns the zoom factor (0 = unchanged). |
page | Page | Read | Returns the target page. |
pageNumber | int | Read | Returns the 1-based page number. |
Methods
| Signature | Description |
|---|---|
XYZExplicitDestination(page: Page, left: double, top: double, zoom: double) | Creates an XYZ destination targeting a page. |
XYZExplicitDestination(pageNumber: int, left: double, top: double, zoom: double) | Creates an XYZ destination by page number (no page object yet known). |
getLeft() → double | Returns the left coordinate, or NaN if unspecified. |
getTop() → double | Returns the top coordinate, or NaN if unspecified. |
getZoom() → double | Returns the zoom factor (0 = unchanged). |
toPdfArray() → PdfArray | |
getPage() → Page | Returns the target page. |
getPageNumber() → int | Returns the 1-based page number. |
fromPdfArray(arr: PdfArray, doc: Document) → ExplicitDestination | Parses an ExplicitDestination from a PDF array. |