FPDFText_GetCharIndexFromTextIndex function
- @Native<Int Function(FPDF_TEXTPAGE, Int)>(FPDF_TEXTPAGE, ffi.Int)>()
- FPDF_TEXTPAGE text_page,
- int nTextIndex
Get the character index in |text_page| internal character list.
text_page - a text page information structure. nTextIndex - index of the text returned from FPDFText_GetText().
Returns the index of the character in internal character list. -1 for error.
Implementation
@ffi.Native<ffi.Int Function(FPDF_TEXTPAGE, ffi.Int)>()
external int FPDFText_GetCharIndexFromTextIndex(
FPDF_TEXTPAGE text_page,
int nTextIndex,
);