 |
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.UniversalAssembly: SelectPdf.Universal (in SelectPdf.Universal.dll) Version: 26.4
Syntaxpublic string ExtractText(
int pageNumber,
double X,
double Y,
double width,
double height
)
Public Function ExtractText (
pageNumber As Integer,
X As Double,
Y As Double,
width As Double,
height As Double
) As String
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
StringThe text found inside the rectangle.
See Also