com.aspose.pdf

Interfaces

Classes

Enums

Exceptions

com.aspose.pdf

Class TextParagraphAbsorber



  • public final class TextParagraphAbsorber
    extends TextAbsorber

    Represents an absorber object of text paragraphs. Performs text search and provides access to search results via TextParagraphAbsorber.TextParagraphs collection.

    • Constructor Detail

      • TextParagraphAbsorber

        public TextParagraphAbsorber(Rectangle[] rectangles)

        Initializes a new instance of the TextParagraphAbsorber with rectangles collection.

        Parameters:
        rectangles - The paragraphs' rectangles.

        The absorber will search for text and return paragraphs corresponding to the rectangles.

    • Method Detail

      • getTextParagraphs

        public TextParagraphCollection getTextParagraphs()

        Gets collection of search occurrences that are presented with TextParagraph objects.

        Returns:
        TextParagraphCollection value
      • setTextParagraphs

        public void setTextParagraphs(TextParagraphCollection value)

        Sets collection of search occurrences that are presented with TextParagraph objects.

        Parameters:
        value - TextParagraphCollection value
      • getRectangles

        public Rectangle[] getRectangles()

        Gets ractangles that the TextParagraphAbsorber used to searche for text paragraphs on the PDF document or page.

        Returns:
        rectangle array
      • setRectangles

        public void setRectangles(Rectangle[] value)

        Sets rectangles that the TextParagraphAbsorber used to search for text paragraphs on the PDF document or page.

        Parameters:
        value - rectangle array
      • visit

        public void visit(Page page)

        Performs search on the specified page.

        Overrides:
        visit in class TextAbsorber
        Parameters:
        page - Page object