PdfTextExtractSearchText(Stream, String, Int32, Int32, Boolean, Boolean) Method
Call this method to search a text in a range of pages of a PDF document contained in a stream
Namespace: HiQPdfAssembly: HiQPdf.NetCore (in HiQPdf.NetCore.dll) Version: 18.0.0
public PdfTextSearchItem[] SearchText(
Stream pdfStream,
string text,
int firstPdfPageNumber,
int lastPdfPageNumber,
bool matchCase,
bool matchWholeWord
)
- pdfStream Stream
- The PDF document stream
- text String
- The text to search
- firstPdfPageNumber Int32
- The first PDF page number
- lastPdfPageNumber Int32
- The last PDF page number
- matchCase Boolean
- Controls if the search should match case
- matchWholeWord Boolean
- Controls if the search should match whole words
PdfTextSearchItemAn array containing the searched text instances in PDF document