Click or drag to resize

PdfTextPageGetIndexFromPoint Method (PointF, 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: (.NET 4.5.2, x86)
public int GetIndexFromPoint(
	PointF point,
	double tolerance


Type: System.DrawingPointF
A PointF representing a location in PDF "user space".
Type: SystemDouble
A point unit tolerance value for character hit detection for both the X and 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