Click or drag to resize

PdfToTextConverterExtractTextAtCoords Method (Stream, Int32, Double, Double, Double, Double)

Extracts the text from the specified page and coordinates.

Namespace:  ExpertPdf
Assembly:  eppdftotext (in eppdftotext.dll) Version: 7.0
Syntax
public string ExtractTextAtCoords(
	Stream pdfStream,
	int pageNumber,
	double X,
	double Y,
	double width,
	double height
)

Parameters

pdfStream
Type: System.IOStream
The binary stream providing the PDF document bytes. It can be for example a FileStream to convert a PDF file to text or a MemoryStream to convert the PDF document represented as an array of bytes to text.
pageNumber
Type: SystemInt32
Page number (starting with 1).
X
Type: SystemDouble
X-coordinate of the crop area top left corner.
Y
Type: SystemDouble
Y-coordinate of the crop area top left corner.
width
Type: SystemDouble
Width of crop area in points.
height
Type: SystemDouble
Height of crop area in points.

Return Value

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