BeginTextSearch
Text and extraction
Description
Builds a reusable search result set in one extraction pass
Returns the number of matching text blocks and resets the traversal position to the first hit
Syntax
Delphi
Function BeginTextSearch(Const Query: WideString; Options: TPDFlibSearchOptions; Const PageRange: WideString): Integer;Parameters
| Query | Search text; an empty value clears any active session and returns 0 |
|---|---|
| Options | Any combination of soCaseSensitive, soWholeWord, soDiacriticInsensitive, soWildcards, soAcrossLines, soPreserveStyle, soCanonicalEquivalent and soGraphemeClusters |
| PageRange | Page-range expression, or an empty string for every page |
Return values
| N | Number of matching text blocks retained for the session |
|---|---|
| 0 | No document is selected or Query is empty |