HiQPdf Documentation

PdfTextExtractSearchText Method (Stream, String, Boolean, Boolean)

HiQPdf Client for .NET Core
Call this method to search a text in a PDF document contained in a stream

Namespace:  HiQPdfClient
Assembly:  HiQPdfClient.NetCore (in HiQPdfClient.NetCore.dll) Version: 15.0.0
Syntax

public PdfTextSearchItem[] SearchText(
	Stream pdfStream,
	string text,
	bool matchCase,
	bool matchWholeWord
)

Parameters

pdfStream
Type: System.IOStream
The PDF document stream
text
Type: SystemString
The text to search
matchCase
Type: SystemBoolean
Controls if the search should match case
matchWholeWord
Type: SystemBoolean
Controls if the search should match whole words

Return Value

Type: PdfTextSearchItem
An array containing the searched text instances in PDF document
See Also

Reference