TextSearch
12 Sep 20252 minutes to read
TextSearch module
Methods
cancelTextSearch
Cancels the text search of the PdfViewer.
Returns void
findText
Searches for the specified text within the document and returns the bounding rectangles of the matched text. The search can be case-sensitive based on the provided parameters. If a specific page index is provided, it returns the bounding rectangles for that page; otherwise, it returns the bounding rectangles for all pages in the document where the text was found.
Returns SearchResultModel[]
findText
Searches for an array of strings within the document and returns the bounding rectangles for each occurrence. The search can be case-sensitive based on the provided parameters. If a specific page index is provided, it returns the bounding rectangles for these search strings on that page; otherwise, it returns the bounding rectangles for all pages in the document where the strings were found.
Returns Record
findTextAsync
Searches for the specified text within the document and returns the bounding rectangles of the matched text. The search can be case-sensitive based on the provided parameters. If a specific page index is provided, it returns the bounding rectangles for that page; otherwise, it returns the bounding rectangles for all pages in the document where the text was found.
Returns Promise
findTextAsync
Searches for an array of strings within the document and returns the bounding rectangles for each occurrence. The search can be case-sensitive based on the provided parameters. If a specific page index is provided, it returns the bounding rectangles for these search strings on that page; otherwise, it returns the bounding rectangles for all pages in the document where the strings were found.
Returns Promise
searchNext
Searches the next occurrence of the searched text from the current occurrence of the PdfViewer.
Returns void
searchPrevious
Searches the previous occurrence of the searched text from the current occurrence of the PdfViewer.
Returns void
searchText
Searches the target text in the PDF document and highlights the occurrences in the pages.
| Parameter | Type | Description |
|---|---|---|
| searchText | string |
Specifies the searchText content |
| isMatchCase | boolean |
If set true , its highlights the MatchCase content |
Returns void