Click or drag to resize

PdfToTextClientsearchFile Method (String, String)

Search for a specific text in a PDF document. The search is case insensitive and returns partial words also.

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

Parameters

inputPdf
Type: SystemString
Path to a local PDF file.
textToSearch
Type: SystemString
Text to search.

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