Click or drag to resize

PdfToTextClientsearchFileAsync Method (String, String, Boolean, Boolean)

Search for a specific text in a PDF document with an asynchronous call.

Namespace:  SelectPdf.Api
Assembly:  SelectPdf.Api (in SelectPdf.Api.dll) Version: 1.4.0
Syntax
public IList<TextPosition> searchFileAsync(
	string inputPdf,
	string textToSearch,
	bool caseSensitive,
	bool wholeWordsOnly
)

Parameters

inputPdf
Type: SystemString
Path to a local PDF file.
textToSearch
Type: SystemString
Text to search.
caseSensitive
Type: SystemBoolean
If the search is case sensitive or not.
wholeWordsOnly
Type: SystemBoolean
If the search works on whole words or not.

Return Value

Type: IListTextPosition
List with text positions in the current PDF document.
Remarks
Pages that participate to this operation are specified by setStartPage(Int32) and setEndPage(Int32) methods.
See Also