create

open fun create(@IntRange(from = 0) pageIndex: Int, @NonNull range: Range, @NonNull pageRects: List<RectF>, @NonNull text: String): TextBlock

Creates a TextBlock from the given page.

Parameters

text

The represented string on the document.

pageIndex

Page this text block resides on.

range

Range of the text block on page (i.e. start and end character index).

pageRects

PDF rects represented by this text block.