FitBExplicitDestination

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

public final class FitBExplicitDestination extends ExplicitDestination

Represents explicit destination that displays the page with its contents magnified just enough to fit its bounding box entirely 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 bounding box within the window in the other dimension.

Constructors

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

Methods

MethodDescription
toString()Converts the object state into string value.

FitBExplicitDestination(Page page)

public FitBExplicitDestination(Page page)

Creates the instance and initializes it by DOM page object.

Parameters:

ParameterTypeDescription
pagePageDOM page object.

FitBExplicitDestination(Document document, int pageNumber)

public FitBExplicitDestination(Document document, int pageNumber)

Creates remote explicit destination.

Parameters:

ParameterTypeDescription
documentDocumentThe parent document that contains this object.
pageNumberintThe destination page number of remote document.

FitBExplicitDestination(int pageNumber)

public FitBExplicitDestination(int pageNumber)

Creates remote explicit destination.

Parameters:

ParameterTypeDescription
pageNumberintThe destination page number of remote document.

toString()

public String toString()

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

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