Click or drag to resize

PdfToTextConverterSearchTexts(String, String, Boolean, Boolean) Method

Searches a PDF file for several texts at once.

Namespace: ExpertPdf.Anywhere
Assembly: ExpertPdf.Anywhere (in ExpertPdf.Anywhere.dll) Version: 22.0
Syntax
public TextSearchResult[] SearchTexts(
	string pdfFilePath,
	string[] textsToSearch,
	bool caseSensitive,
	bool wholeWord
)

Parameters

pdfFilePath  String
The path of the file containing the PDF document.
textsToSearch  String
The texts to search for.
caseSensitive  Boolean
Specifies if the search is case sensitive.
wholeWord  Boolean
Specifies if the search looks for whole words only or not.

Return Value

TextSearchResult
One TextSearchResult for each text, in the order of textsToSearch, with the positions where the text was found, grouped by page.
Remarks
The pages searched are given by the StartPageNumber and EndPageNumber properties. Arabic text is found whether the document maps its glyphs to the letters or to their presentation forms.
See Also