Click or drag to resize
Pdf Library for .NET

PdfToTextExtractText Method

Extracts the text from the specified page and coordinates.

Namespace: SelectPdf
Assembly: Select.Pdf (in Select.Pdf.dll) Version: 26.2
Syntax
public string ExtractText(
	int pageNumber,
	double X,
	double Y,
	double width,
	double height
)

Parameters

pageNumber  Int32
Page number (starting with 1).
X  Double
X-coordinate of the crop area top left corner.
Y  Double
Y-coordinate of the crop area top left corner.
width  Double
Width of crop area in points.
height  Double
Height of crop area in points.

Return Value

String
The text extracted from the specified crop area of the PDF document.
See Also