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