HiQPdf Documentation

PdfTextExtract.SearchText Method (Byte[], String, Boolean, Boolean)

Quickly Create High Quality PDFs
Call this method to search text in a PDF document contained in a memory buffer

Namespace:  HiQPdf
Assembly:  HiQPdf (in HiQPdf.dll) Version: 15.0.0.0
Syntax

public PdfTextSearchItem[] SearchText(
	byte[] pdfBuffer,
	string text,
	bool matchCase,
	bool matchWholeWord
)

Parameters

pdfBuffer
Type:System.Byte[]
The PDF document memory buffer
text
Type: System.String
The text to search
matchCase
Type: System.Boolean
Controls if the search should match case
matchWholeWord
Type: System.Boolean
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