The text string to search for in the document.
Optional search parameters such as case sensitivity, whole word match, etc.
A promise that resolves to an array of
CPDFTextRange objects representing the matched text results.
Selects a specific search result and highlights it in the PDF viewer.
This method is typically used when a user taps on a search result or navigates through search results using next/previous controls.
The text range to select and highlight.
A promise that resolves once the selection is applied.
Retrieves the text content from a specific text range.
Can be used to extract the original matched text or additional surrounding content
by using the expanded() method on a CPDFTextRange.
The text range from which to extract text.
A promise that resolves with the extracted text content.
Searches for the specified text in the current PDF document.
This method performs a text search in the currently loaded PDF document and returns an array of results. Each result is represented by a
CPDFTextRangeobject containing the page index, location, length, and internal range index.