SearchTextBatchEach
Text, extraction
Description
Runs the same single-pass multi-query search as SearchTextBatch and sends every match to a callback without allocating a caller-sized result array
Syntax
Function TPDFlib.SearchTextBatchEach(Const Queries: Array Of TPDFlibSearchQuery; Const PageRange: WideString; OnHit: TPDFlibSearchBatchHitEvent): Integer;Parameters
| Queries | Query text and matching options |
|---|---|
| PageRange | An empty string for every page or a one-based page-range expression |
| OnHit | The callback invoked for each matching query and text block |
Return value
Returns the number of matches emitted before completion or cancellation
Remarks
Progress is reported once for each page pass through OnProgress and OnOperationProgress
Callback cancellation sets the library abort state; call ResetAbort before another operation