prepareTextInfo

fun prepareTextInfo(pageIndex: Int): Long

Prepare information about all characters in a page. Application must call FPDFText_ClosePage to release the text page information.

Return

A handle to the text page information structure. NULL if something goes wrong.

Parameters

pageIndex

index of page.


fun prepareTextInfo(fromIndex: Int, toIndex: Int): LongArray

Prepare information about all characters in a range of pages. Application must call FPDFText_ClosePage to release the text page information.

Return

list of handles to the text page information structure. NULL if something goes wrong.

Parameters

fromIndex

start index of page.

toIndex

end index of page.