Click or drag to resize
PdfToTextConverterExtractTextPositions Method (String, String, Boolean, Boolean)
Searches for a text into a PDF file.

Namespace: ExpertPdf
Assembly: pdftotext.net20.x86 (in pdftotext.net20.x86.dll) Version: 4.2
Syntax
public TextPosition[] ExtractTextPositions(
	string pdfFilePath,
	string textToSearch,
	bool caseSensitive,
	bool wholeWord
)

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: TextPosition
An array with all text positions that match the search conditions.
See Also