SearchText

Text, extraction

Description

Searches text blocks across the requested page range and copies hits into the caller-provided array while returning the total match count even when the array is smaller

The method reports page progress through OnProgress, honours Abort between pages and blocks, and restores the page that was selected before searching

Use SearchTextEach when hits should be consumed immediately without choosing a result-array capacity

Syntax

Delphi

Function TPDFlib.SearchText(Const Query: WideString; Options: TPDFlibSearchOptions; Const PageRange: WideString; Out Hits: Array Of TPDFlibSearchHit): Integer;

Parameters

Please refer to the PDFlibPas Developer Guide and header comments for detailed parameter descriptions.

Return Value

Please refer to the PDFlibPas Developer Guide for specific return value semantics.

Remarks

For more related information, please refer to the relevant library documentation or demo projects.