Click or drag to resize

PdfToTextConverterSearchTexts(Stream, String, Boolean, Boolean) Method

Searches a PDF document specified by a Stream for several texts at once.

Namespace: ExpertPdf
Assembly: eppdftotext (in eppdftotext.dll) Version: 10.0
Syntax
public TextSearchResult[] SearchTexts(
	Stream pdfStream,
	string[] textsToSearch,
	bool caseSensitive,
	bool wholeWord
)

Parameters

pdfStream  Stream
The binary stream providing the PDF document bytes. It can be for example a FileStream or a MemoryStream over the PDF document bytes.
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