Click or drag to resize
Pdf Library for .NET

PdfToTextExtractText Method

Extracts the text inside a rectangle (in PDF points, page origin top-left) on a single page (page numbers start at 1).

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

Parameters

pageNumber  Int32
The 1-based number of the page.
X  Double
The X coordinate of the rectangle, in points.
Y  Double
The Y coordinate of the rectangle, in points.
width  Double
The width of the rectangle, in points.
height  Double
The height of the rectangle, in points.

Return Value

String
The text found inside the rectangle.
See Also