Click or drag to resize

PdfiumFPDFText_GetCharIndexFromTextIndex Method

Get the actually char index in text_page's internal char list.

Namespace: Patagames.Pdf
Assembly: Patagames.Pdf (in Patagames.Pdf.dll) Version: 4.94.2704
Syntax
public static int FPDFText_GetCharIndexFromTextIndex(
	IntPtr text_page,
	int index
)

Parameters

text_page  IntPtr
Handle to a text page information structure. Returned by FPDFText_LoadPage(IntPtr) function.
index  Int32
The index of the text in the string get from FPDFText_GetText(IntPtr, Int32, Int32)

Return Value

Int32
The index of the character in internal charlist. -1 for error
See Also