Click or drag to resize
Pdf Library for .NET

PdfToTextSearch(String, Boolean, Boolean) Method

Search for a specific text in a PDF document.

Namespace: SelectPdf
Assembly: Select.Pdf (in Select.Pdf.dll) Version: 26.2
Syntax
public TextPosition[] Search(
	string textToSearch,
	bool caseSensitive,
	bool wholeWordsOnly
)

Parameters

textToSearch  String
Text to search.
caseSensitive  Boolean
If the search is case sensitive or not.
wholeWordsOnly  Boolean
If the search works on whole words or not.

Return Value

TextPosition
Array with text positions in the current PDF document.
Remarks
Pages that participate to this operation are specified by StartPageNumber and EndPageNumber properties.
See Also