com.aspose.pdf

Interfaces

Classes

Enums

Exceptions

com.aspose.pdf

Class FitHExplicitDestination

  • All Implemented Interfaces:
    IAppointment


    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.

    • Constructor Detail

      • FitHExplicitDestination

        public FitHExplicitDestination(Page page,
                                       double top)

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

        Parameters:
        page - DOM page object.
        top - The vertical coordinate top positioned at the top edge of the window.
      • FitHExplicitDestination

        @Deprecated
        public FitHExplicitDestination(Document document,
                                                    int pageNumber,
                                                    double top)
        Deprecated. 

        Creates remote explicit destination.

        Parameters:
        document - The parent document that contains this object.
        pageNumber - The destination page number of remote document.
        top - The vertical coordinate top positioned at the top edge of the window.
      • FitHExplicitDestination

        public FitHExplicitDestination(int pageNumber,
                                       double top)

        Creates remote explicit destination.

        Parameters:
        pageNumber - The destination page number of remote document.
        top - The vertical coordinate top positioned at the top edge of the window.
    • Method Detail

      • getTop

        public double getTop()

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

        Returns:
        double value
      • toString

        public String toString()

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

        Overrides:
        toString in class Object
        Returns:
        String value representing object state.