Constructor
new PDFFindController(options)
Parameters:
Name | Type | Description |
---|---|---|
options |
PDFFindControllerOptions |
- Source:
Members
_query :string
The (current) normalized search query.
Type:
- string
- Source:
Methods
_isEntireWord()
Determine if the search query constitutes a "whole word", by comparing the
first/last character type with the preceding/following character type.
- Source:
_prepareMatches()
Helper for multi-term search that fills the `matchesWithLength` array
and handles cases where one search term includes another search term (for
example, "tamed tame" or "this is"). It looks for intersecting terms in
the `matches` and keeps elements with a longer match length.
- Source:
setDocument(pdfDocument)
Set a reference to the PDF document in order to search it.
Note that searching is not possible if this method is not called.
Parameters:
Name | Type | Description |
---|---|---|
pdfDocument |
PDFDocumentProxy | The PDF document to search. |
- Source: