com.aspose.pdf

Interfaces

Classes

Enums

Exceptions

com.aspose.pdf

Class FitRExplicitDestination

  • All Implemented Interfaces:
    IAppointment


    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.

    • Constructor Detail

      • FitRExplicitDestination

        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:
        page - DOM page object.
        left - Left horizontal coordinate of visible rectangle.
        bottom - Bottom vertical coordinate of visible rectangle.
        right - Right horizontal coordinate of visible rectangle.
        top - Top vertical coordinate of visible rectangle.
      • FitRExplicitDestination

        @Deprecated
        public FitRExplicitDestination(Document document,
                                                    int pageNumber,
                                                    double left,
                                                    double bottom,
                                                    double right,
                                                    double top)
        Deprecated. 

        Creates remote explicit destination.

        Parameters:
        document - The parent document that contains this object.
        pageNumber - The destination page number of remote document.
        left - Left horizontal coordinate of visible rectangle.
        bottom - Bottom vertical coordinate of visible rectangle.
        right - Right horizontal coordinate of visible rectangle.
        top - Top vertical coordinate of visible rectangle.
      • FitRExplicitDestination

        public FitRExplicitDestination(int pageNumber,
                                       double left,
                                       double bottom,
                                       double right,
                                       double top)

        Creates remote explicit destination.

        Parameters:
        pageNumber - The destination page number of remote document.
        left - Left horizontal coordinate of visible rectangle.
        bottom - Bottom vertical coordinate of visible rectangle.
        right - Right horizontal coordinate of visible rectangle.
        top - Top vertical coordinate of visible rectangle.
    • Method Detail

      • getLeft

        public double getLeft()

        Gets left horizontal coordinate of visible rectangle.

        Returns:
        double value
      • getBottom

        public double getBottom()

        Gets bottom vertical coordinate of visible rectangle.

        Returns:
        double value
      • getRight

        public double getRight()

        Gets right horizontal coordinate of visible rectangle.

        Returns:
        double value
      • getTop

        public double getTop()

        Gets top vertical coordinate of visible rectangle.

        Returns:
        double value
      • toString

        public String toString()

        Converts the object state into string value. Example: "1 FitR 100 200 300 400".

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