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 and Description |
|---|
TextParagraphAbsorber(Rectangle[] rectangles)
Initializes a new instance of the
TextParagraphAbsorber with rectangles collection. |
| Modifier and Type | Method and Description |
|---|---|
Rectangle[] |
getRectangles()
Gets ractangles that the
TextParagraphAbsorber used to searche for text paragraphs on
the PDF document or page. |
TextParagraphCollection |
getTextParagraphs()
Gets collection of search occurrences that are presented with
TextParagraph objects. |
void |
setRectangles(Rectangle[] value)
Sets rectangles that the
TextParagraphAbsorber used to search for text paragraphs on
the PDF document or page. |
void |
setTextParagraphs(TextParagraphCollection value)
Sets collection of search occurrences that are presented with
TextParagraph objects. |
void |
visit(Page page)
Performs search on the specified page.
|
getErrors, getExtractionOptions, getText, getTextSearchOptions, hasErrors, setExtractionOptions, setTextSearchOptions, visit, visitpublic TextParagraphAbsorber(Rectangle[] rectangles)
Initializes a new instance of the TextParagraphAbsorber with rectangles collection.
rectangles - The paragraphs' rectangles.
The absorber will search for text and return paragraphs corresponding to the rectangles.
public TextParagraphCollection getTextParagraphs()
Gets collection of search occurrences that are presented with TextParagraph objects.
public void setTextParagraphs(TextParagraphCollection value)
Sets collection of search occurrences that are presented with TextParagraph objects.
value - TextParagraphCollection valuepublic Rectangle[] getRectangles()
Gets ractangles that the TextParagraphAbsorber used to searche for text paragraphs on
the PDF document or page.
public void setRectangles(Rectangle[] value)
Sets rectangles that the TextParagraphAbsorber used to search for text paragraphs on
the PDF document or page.
value - rectangle arraypublic void visit(Page page)
Performs search on the specified page.
visit in class TextAbsorberpage - Page objectCopyright © 2025 Aspose. All Rights Reserved.