HiQPdf Documentation

PdfTextExtractSearchText Method (String, String, Int32, Int32, Boolean, Boolean)

HiQPdf Client for .NET Core
Call this method search a text in a range of pages of a PDF file

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

public PdfTextSearchItem[] SearchText(
	string pdfFile,
	string text,
	int firstPdfPageNumber,
	int lastPdfPageNumber,
	bool matchCase,
	bool matchWholeWord
)

Parameters

pdfFile
Type: SystemString
The fully qualified name of the PDF file
text
Type: SystemString
The text to search
firstPdfPageNumber
Type: SystemInt32
The first PDF page number
lastPdfPageNumber
Type: SystemInt32
The last PDF page number
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