FitRExplicitDestination
Inheritance: java.lang.Object, com.aspose.pdf.ExplicitDestination
public final class FitRExplicitDestination extends ExplicitDestination
Represents explicit destination that displays the page with its contents magnified just enough to fit the rectangle specified by the coordinates left, bottom, right, and topentirely within the window both horizontally and vertically. If the required horizontal and vertical magnification factors are different, use the smaller of the two, centering the rectangle within the window in the other dimension. A null value for any of the parameters may result in unpredictable behavior.
Constructors
Constructor | Description |
---|---|
FitRExplicitDestination(Page page, double left, double bottom, double right, double top) | Creates the instance and initializes it by DOM page object and visible parameters. |
FitRExplicitDestination(Document document, int pageNumber, double left, double bottom, double right, double top) | Creates remote explicit destination. |
FitRExplicitDestination(int pageNumber, double left, double bottom, double right, double top) | Creates remote explicit destination. |
Methods
Method | Description |
---|---|
getLeft() | Gets left horizontal coordinate of visible rectangle. |
getBottom() | Gets bottom vertical coordinate of visible rectangle. |
getRight() | Gets right horizontal coordinate of visible rectangle. |
getTop() | Gets top vertical coordinate of visible rectangle. |
toString() | Converts the object state into string value. |
FitRExplicitDestination(Page page, double left, double bottom, double right, double top)
public FitRExplicitDestination(Page page, double left, double bottom, double right, double top)
Creates the instance and initializes it by DOM page object and visible parameters.
Parameters:
Parameter | Type | Description |
---|---|---|
page | Page | DOM page object. |
left | double | Left horizontal coordinate of visible rectangle. |
bottom | double | Bottom vertical coordinate of visible rectangle. |
right | double | Right horizontal coordinate of visible rectangle. |
top | double | Top vertical coordinate of visible rectangle. |
FitRExplicitDestination(Document document, int pageNumber, double left, double bottom, double right, double top)
public FitRExplicitDestination(Document document, int pageNumber, double left, double bottom, double right, double top)
Creates remote explicit destination.
Parameters:
Parameter | Type | Description |
---|---|---|
document | Document | The parent document that contains this object. |
pageNumber | int | The destination page number of remote document. |
left | double | Left horizontal coordinate of visible rectangle. |
bottom | double | Bottom vertical coordinate of visible rectangle. |
right | double | Right horizontal coordinate of visible rectangle. |
top | double | Top vertical coordinate of visible rectangle. |
FitRExplicitDestination(int pageNumber, double left, double bottom, double right, double top)
public FitRExplicitDestination(int pageNumber, double left, double bottom, double right, double top)
Creates remote explicit destination.
Parameters:
Parameter | Type | Description |
---|---|---|
pageNumber | int | The destination page number of remote document. |
left | double | Left horizontal coordinate of visible rectangle. |
bottom | double | Bottom vertical coordinate of visible rectangle. |
right | double | Right horizontal coordinate of visible rectangle. |
top | double | Top vertical coordinate of visible rectangle. |
getLeft()
public double getLeft()
Gets left horizontal coordinate of visible rectangle.
Returns: double - double value
getBottom()
public double getBottom()
Gets bottom vertical coordinate of visible rectangle.
Returns: double - double value
getRight()
public double getRight()
Gets right horizontal coordinate of visible rectangle.
Returns: double - double value
getTop()
public double getTop()
Gets top vertical coordinate of visible rectangle.
Returns: double - double value
toString()
public String toString()
Converts the object state into string value. Example: “1 FitR 100 200 300 400”.
Returns: java.lang.String - String value representing object state.