Class: DocumentTextSearchStrategy
Represents a search strategy specifically designed for searching text within a document.
Inherits functionality from the generic SearchStrategy class, specifying DocumentTextSearchParams and returning an array of DocumentTextSearchResult objects.
Extends
Constructors
new DocumentTextSearchStrategy()
new DocumentTextSearchStrategy(
document):DocumentTextSearchStrategy
Constructs a new DocumentTextSearchStrategy instance.
Parameters
• document: Document
Parameter representing the PDF document to be searched.
Returns
Overrides
Properties
document
document:
Document
The Pdf.Document instance associated with this search strategy.
Inherited from
Methods
execute()
execute(
params):SearchExecution<DocumentTextSearchResult[]>
Executes the search strategy asynchronously.
Parameters
• params: DocumentTextSearchParams
The parameters for the search operation.
Returns
SearchExecution<DocumentTextSearchResult[]>
A SearchExecution object representing the ongoing search operation.