com.groupdocs.parser.data

Class PageTextArea

    • Constructor Detail

      • PageTextArea

        public PageTextArea(String text,
                    Page page,
                    Rectangle rectangle)
        Initializes a new instance of the PageTextArea class.
        Parameters:
        text - The value of the text.
        page - The page that contains the text area.
        rectangle - The rectangular area that contains the text area.
      • PageTextArea

        public PageTextArea(String text,
                    Double baseLine,
                    TextStyle textStyle,
                    Page page,
                    Rectangle rectangle)
        Initializes a new instance of the PageTextArea class.
        Parameters:
        text - The value of the text.
        baseLine - The base line of the text.
        textStyle - The style of the text.
        page - The page that contains the text area.
        rectangle - The rectangular area that contains the text area.
      • PageTextArea

        public PageTextArea(Iterable<PageTextArea> areas,
                    Page page)
        Initializes a new instance of the PageTextArea class.
        Parameters:
        areas - The collecton of child text page areas.
        page - The page that contains the text area.
    • Method Detail

      • getText

        public String getText()
        Gets the text.
        Returns:
        A string value that represents a value of the text page area.
      • getBaseLine

        public double getBaseLine()
        Gets the base line.
        Returns:
        A double value that represents the base line.
      • getTextStyle

        public TextStyle getTextStyle()
        Gets the text style such as font size, font name an so on.
        Returns:
        An instance of TextStyle class that represents the text style.
      • getAreas

        public List<PageTextArea> getAreas()
        Gets the collection of child text page areas.
        Returns:
        A collection of child text page areas; empty if the text page area hasn't children.