TextParagraphAbsorber

Inheritance: java.lang.Object, com.aspose.pdf.TextAbsorber

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.

Constructors

ConstructorDescription
TextParagraphAbsorber(Rectangle[] rectangles)Initializes a new instance of the TextParagraphAbsorber with rectangles collection.

Methods

MethodDescription
getTextParagraphs()Gets collection of search occurrences that are presented with TextParagraph objects.
setTextParagraphs(TextParagraphCollection value)Sets collection of search occurrences that are presented with TextParagraph objects.
getRectangles()Gets ractangles that the TextParagraphAbsorber used to searche for text paragraphs on the PDF document or page.
setRectangles(Rectangle[] value)Sets rectangles that the TextParagraphAbsorber used to search for text paragraphs on the PDF document or page.
visit(Page page)Performs search on the specified page.

TextParagraphAbsorber(Rectangle[] rectangles)

public TextParagraphAbsorber(Rectangle[] rectangles)

Initializes a new instance of the TextParagraphAbsorber with rectangles collection.

Parameters:

ParameterTypeDescription
rectanglesRectangle[]The paragraphs’ rectangles.

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

getTextParagraphs()

public TextParagraphCollection getTextParagraphs()

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

Returns: TextParagraphCollection - TextParagraphCollection value

setTextParagraphs(TextParagraphCollection value)

public void setTextParagraphs(TextParagraphCollection value)

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

Parameters:

ParameterTypeDescription
valueTextParagraphCollectionTextParagraphCollection value

getRectangles()

public Rectangle[] getRectangles()

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

Returns: com.aspose.pdf.Rectangle[] - rectangle array

setRectangles(Rectangle[] value)

public void setRectangles(Rectangle[] value)

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

Parameters:

ParameterTypeDescription
valueRectangle[]rectangle array

visit(Page page)

public void visit(Page page)

Performs search on the specified page.

Parameters:

ParameterTypeDescription
pagePagePage object