PdfToTextConverterExtractTextPositions Method (String, String, Boolean, Boolean) |
Searches for a text into a PDF file.
Namespace:
ExpertPdf
Assembly:
eppdftotext (in eppdftotext.dll) Version: 7.0
Syntax public TextPosition[] ExtractTextPositions(
string pdfFilePath,
string textToSearch,
bool caseSensitive,
bool wholeWord
)
Public Function ExtractTextPositions (
pdfFilePath As String,
textToSearch As String,
caseSensitive As Boolean,
wholeWord As Boolean
) As TextPosition()
Parameters
- pdfFilePath
- Type: SystemString
The path of the file containing the PDF document. - textToSearch
- Type: SystemString
Text that is being search for in the PDF document. - caseSensitive
- Type: SystemBoolean
Specifies if the search is case sensitive. - wholeWord
- Type: SystemBoolean
Specifies if the search looks for whole words only or not.
Return Value
Type:
TextPositionAn array with all text positions that match the search conditions.
See Also