FitHExplicitDestination

Inheritance: java.lang.Object, com.aspose.pdf.ExplicitDestination

public final class FitHExplicitDestination extends ExplicitDestination

Represents explicit destination that displays the page with the vertical coordinate top positioned at the top edge of the window and the contents of the page magnified just enough to fit the entire width of the page within the window. A null value for top specifies that the current value of that parameter is to be retained unchanged.

Constructors

ConstructorDescription
FitHExplicitDestination(Page page, double top)Creates the instance and initializes it by DOM page object and top parameter.
FitHExplicitDestination(Document document, int pageNumber, double top)Creates remote explicit destination.
FitHExplicitDestination(int pageNumber, double top)Creates remote explicit destination.

Methods

MethodDescription
getTop()Gets the vertical coordinate top positioned at the top edge of the window.
toString()Converts the object state into string value.

FitHExplicitDestination(Page page, double top)

public FitHExplicitDestination(Page page, double top)

Creates the instance and initializes it by DOM page object and top parameter.

Parameters:

ParameterTypeDescription
pagePageDOM page object.
topdoubleThe vertical coordinate top positioned at the top edge of the window.

FitHExplicitDestination(Document document, int pageNumber, double top)

public FitHExplicitDestination(Document document, int pageNumber, double top)

Creates remote explicit destination.

Parameters:

ParameterTypeDescription
documentDocumentThe parent document that contains this object.
pageNumberintThe destination page number of remote document.
topdoubleThe vertical coordinate top positioned at the top edge of the window.

FitHExplicitDestination(int pageNumber, double top)

public FitHExplicitDestination(int pageNumber, double top)

Creates remote explicit destination.

Parameters:

ParameterTypeDescription
pageNumberintThe destination page number of remote document.
topdoubleThe vertical coordinate top positioned at the top edge of the window.

getTop()

public double getTop()

Gets the vertical coordinate top positioned at the top edge of the window.

Returns: double - double value

toString()

public String toString()

Converts the object state into string value. Example: “1 FitH 100”.

Returns: java.lang.String - String value representing object state.