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
Constructor | Description |
---|---|
TextParagraphAbsorber(Rectangle[] rectangles) | Initializes a new instance of the TextParagraphAbsorber with rectangles collection. |
Methods
Method | Description |
---|---|
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:
Parameter | Type | Description |
---|---|---|
rectangles | Rectangle[] | 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:
Parameter | Type | Description |
---|---|---|
value | TextParagraphCollection | TextParagraphCollection 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:
Parameter | Type | Description |
---|---|---|
value | Rectangle[] | rectangle array |
visit(Page page)
public void visit(Page page)
Performs search on the specified page.
Parameters:
Parameter | Type | Description |
---|---|---|
page | Page | Page object |