public final class XYZExplicitDestination extends ExplicitDestination
Represents explicit destination that displays the page with the coordinates (left, top) positioned at the upper-left corner of the window and the contents of the page magnified by the factor zoom. A null value for any of the parameters left, top, or zoom specifies that the current value of that parameter is to be retained unchanged. A zoom value of 0 has the same meaning as a null value.
Document doc = new Document("example.pdf"); XYZExplicitDestination dest = (XYZExplicitDestination)doc.getOutlines().get_Item(1).getDestination(); String left = dest.getLeft(); String top = dest.getTop(); String zoom = dest.getZoom();
Constructor and Description |
---|
XYZExplicitDestination(IDocument doc,
int page,
double left,
double top,
double zoom)
|
XYZExplicitDestination(Page page,
double left,
double top,
double zoom)
Creates the instance and initializes it by DOM page object and visible parameters.
|
Modifier and Type | Method and Description |
---|---|
double |
getLeft()
Gets left horizontal coordinate of the upper-left corner of the window.
|
double |
getTop()
Gets top vertical coordinate of the upper-left corner of the window.
|
double |
getZoom()
Gets zoom factor.
|
String |
toString()
Converts the object state into string value.
|
createDestination, createDestination, createDestination, createDestination, getPage, getPageNumber
public XYZExplicitDestination(Page page, double left, double top, double zoom)
Creates the instance and initializes it by DOM page object and visible parameters.
page
- DOM page object.left
- Left horizontal coordinate of the upper-left corner of the window.top
- Top vertical coordinate of the upper-left corner of the window.zoom
- Zoom factor.public XYZExplicitDestination(IDocument doc, int page, double left, double top, double zoom)
doc
- page
- left
- top
- zoom
- Copyright © 2017 Aspose. All Rights Reserved.