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

ConstructorDescription
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

MethodDescription
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:

ParameterTypeDescription
pagePageDOM page object.
leftdoubleLeft horizontal coordinate of visible rectangle.
bottomdoubleBottom vertical coordinate of visible rectangle.
rightdoubleRight horizontal coordinate of visible rectangle.
topdoubleTop 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:

ParameterTypeDescription
documentDocumentThe parent document that contains this object.
pageNumberintThe destination page number of remote document.
leftdoubleLeft horizontal coordinate of visible rectangle.
bottomdoubleBottom vertical coordinate of visible rectangle.
rightdoubleRight horizontal coordinate of visible rectangle.
topdoubleTop 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:

ParameterTypeDescription
pageNumberintThe destination page number of remote document.
leftdoubleLeft horizontal coordinate of visible rectangle.
bottomdoubleBottom vertical coordinate of visible rectangle.
rightdoubleRight horizontal coordinate of visible rectangle.
topdoubleTop 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.