TextParagraphAbsorber
Inheritance: java.lang.Object, com.aspose.pdf.TextAbsorber com.aspose.pdf.TextParagraphAbsorber, com.aspose.pdf.TextAbsorber, com.aspose.pdf.TextParagraphAbsorber
public final class TextParagraphAbsorber extends TextAbsorber
Represents an absorber object of text paragraphs. Performs text search and provides access to search results via {@code TextParagraphAbsorber.TextParagraphs} collection.
Constructors
| Constructor | Description |
|---|---|
| TextParagraphAbsorber | Initializes a new instance of the {@code TextParagraphAbsorber} with rectangles collection. |
Methods
| Method | Description |
|---|---|
| getRectangles | Gets ractangles that the {@code TextParagraphAbsorber} used to searche for text paragraphs on the PDF document or page. |
| getTextParagraphs | Gets collection of search occurrences that are presented with {@code TextParagraph} objects. |
| setRectangles | Sets rectangles that the {@code TextParagraphAbsorber} used to search for text paragraphs on the PDF document or page. |
| setTextParagraphs | Sets collection of search occurrences that are presented with {@code TextParagraph} objects. |
| visit | Performs search on the specified page. |
TextParagraphAbsorber
Initializes a new instance of the {@code TextParagraphAbsorber} with rectangles collection.
getRectangles
public Rectangle [] getRectangles()
Gets ractangles that the {@code TextParagraphAbsorber} used to searche for text paragraphs on the PDF document or page.
Returns: rectangle array
getTextParagraphs
public TextParagraphCollection getTextParagraphs()
Gets collection of search occurrences that are presented with {@code TextParagraph} objects.
Returns: TextParagraphCollection value
setRectangles
Sets rectangles that the {@code TextParagraphAbsorber} used to search for text paragraphs on the PDF document or page.
setTextParagraphs
Sets collection of search occurrences that are presented with {@code TextParagraph} objects.
visit
Performs search on the specified page.