Click or drag to resize

PdfTextPageGetIndexFromPoint Method (PointF, Double, Double)

Gets the index of a character at or nearby a given position on the page.

Namespace:  Atalasoft.Pdf.TextExtract
Assembly:  Atalasoft.dotImage.PdfReader (in Atalasoft.dotImage.PdfReader.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax
public int GetIndexFromPoint(
	PointF point,
	double xTolerance,
	double yTolerance
)

Parameters

point
Type: System.DrawingPointF
A PointF representing a location in PDF "user space".
xTolerance
Type: SystemDouble
A point unit tolerance value for character hit detection for the X axis.
yTolerance
Type: SystemDouble
A point unit tolerance value for character hit detection for the Y axis.

Return Value

Type: Int32

Returns the zero-based index of the character at, or nearby the given point.

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