PdfToTextConverterSearchTexts(String, String, Boolean, Boolean) Method |
Searches a PDF file for several texts at once.
Namespace: ExpertPdfAssembly: eppdftotext (in eppdftotext.dll) Version: 10.0
Syntaxpublic TextSearchResult[] SearchTexts(
string pdfFilePath,
string[] textsToSearch,
bool caseSensitive,
bool wholeWord
)
Public Function SearchTexts (
pdfFilePath As String,
textsToSearch As String(),
caseSensitive As Boolean,
wholeWord As Boolean
) As TextSearchResult()
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
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