PdfToTextConverterSearchTexts(Stream, String, Boolean, Boolean) Method |
Searches a PDF document specified by a Stream for several texts at once.
Namespace: ExpertPdf.AnywhereAssembly: ExpertPdf.Anywhere (in ExpertPdf.Anywhere.dll) Version: 22.0
Syntaxpublic TextSearchResult[] SearchTexts(
Stream pdfStream,
string[] textsToSearch,
bool caseSensitive,
bool wholeWord
)
Public Function SearchTexts (
pdfStream As Stream,
textsToSearch As String(),
caseSensitive As Boolean,
wholeWord As Boolean
) As TextSearchResult()
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
TextSearchResultOne
TextSearchResult for each text, in the order of
textsToSearch,
with the positions where the text was found, grouped by page.
RemarksThe 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