Package com.pspdfkit.datastructures
Class TextBlock
-
- All Implemented Interfaces:
-
java.lang.Comparable
public final class TextBlock implements Comparable<T>
Represents a text located on a document page. This model contains the actual text the range (i.e. the start and end index of the text on the page), and a list of pageRects holding the PDF coordinates of the text.
-
-
Method Summary
-
-
Method Detail
-
create
static TextBlock create(@IntRange(from = 0) int pageIndex, @NonNull() Range range, @NonNull() List<RectF> pageRects, @NonNull() String text)
Creates a TextBlock from the given page.
- Parameters:
pageIndex
- Page this text block resides on.range
- Range of the text block on page (i.e.pageRects
- PDF rects represented by this text block.text
- The represented string on the document.
-
-
-
-