Click or drag to resize

PdfiumFPDFText_GetCharIndexAtPos Method

Get the index of a character at or nearby a certain position on the page

Namespace: Patagames.Pdf
Assembly: Patagames.Pdf (in Patagames.Pdf.dll) Version: 4.94.2704
Syntax
public static int FPDFText_GetCharIndexAtPos(
	IntPtr text_page,
	double x,
	double y,
	double xTolerance,
	double yTolerance
)

Parameters

text_page  IntPtr
Handle to a text page information structure. Returned by FPDFText_LoadPage(IntPtr) function
x  Double
X position in PDF "user space"
y  Double
Y position in PDF "user space"
xTolerance  Double
An x-axis tolerance value for character hit detection, in point unit.
yTolerance  Double
A y-axis tolerance value for character hit detection, in point unit

Return Value

Int32
The zero-based index of the character at, or nearby the point (x,y). If there is no character at or nearby the point, return value will be -1. If an error occurs, -3 will be returned.
See Also