createTextBlock

Creates TextBlock from textual annotation.

Return

Text block created from the given annotation.

Parameters

document

Document this text block resides on.

annotation

Annotation this text block resides on.

range

Range of the text block inside annotation (i.e. start and end character index).


fun PdfDocument.createTextBlock(@IntRange(from = 0) pageIndex: Int, range: Range): TextBlock

Creates a TextBlock from the given page.

Return

Text block created from the given page.

Parameters

document

Document this text block resides on.

pageIndex

Page this text block resides on.

range

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