com.groupdocs.viewer.results

Class Page



  • public class Page
    extends Object

    Represents single page that can be viewed.

    • Constructor Detail

      • Page

        public Page(int number,
            boolean visible)

        Initializes new instance of Page class.

        Parameters:
        number - The page number.
        visible - The page visibility indicator.
        Throws:
        IllegalArgumentException - Thrown when number is less or equal to zero.
      • Page

        public Page(int number,
            boolean visible,
            int width,
            int height)

        Initializes new instance of Page class.

        Parameters:
        number - The page number.
        visible - The page visibility indicator.
        width - The width of the page in pixels when viewing as JPG or PNG.
        height - The height of the page in pixels when viewing as JPG or PNG.
        Throws:
        IllegalArgumentException - Thrown when number is less or equal to zero.
        IllegalArgumentException - Thrown when width is less or equal to zero.
        IllegalArgumentException - Thrown when height is less or equal to zero.
      • Page

        public Page(int number,
            boolean visible,
            int width,
            int height,
            List<Line> lines)

        Initializes new instance of Page class.

        Parameters:
        number - The page number.
        visible - The page visibility indicator.
        width - The width of the page in pixels when viewing as JPG or PNG.
        height - The height of the page in pixels when viewing as JPG or PNG.
        lines - The lines contained by the page when viewing as JPG or PNG with enabled Text Extraction.
        Throws:
        IllegalArgumentException - Thrown when number is less or equal to zero.
        IllegalArgumentException - Thrown when width is less or equal to zero.
        IllegalArgumentException - Thrown when height is less or equal to zero.
        IllegalArgumentException - Thrown when lines is null.
    • Method Detail

      • getHeight

        public final int getHeight()
      • getLines

        public final List<Line> getLines()
      • getNumber

        public final int getNumber()
      • getWidth

        public final int getWidth()
      • isVisible

        public final boolean isVisible()
      • toString

        public String toString()

        Returns a string that represents the current object.

        Overrides:
        toString in class Object
        Returns:
        A string that represents the current object.