java.lang.Object | |
↳ | com.pspdfkit.api.TextBlock |
An immutable class representing a block of text on a page.
Contains the text string and the page coordinates in the form of a Rect
.
See getTextLines()
to retrieve the text from a page split into TextBlocks representing lines.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
public final Rect | rect | A Rect representing the area on the page covered by this block. |
|||||||||
public final String | text | The String of text for this block. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
TextBlock(String text, Rect rect)
Constructs a TextBlock with a string and rect.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
The String of text for this block.
Constructs a TextBlock with a string and rect.
text | A String representing the text in the block. |
---|---|
rect | A Rect representing the area on the page where the text is located.
|