TextSearch

Searches text inside a PdfDocument.

Constructors

Link copied to clipboard
constructor(@NonNull document: PdfDocument, @NonNull configuration: PdfConfiguration)
Creates a TextSearch instance to search the given document.

Functions

Link copied to clipboard
open fun performSearch(@NonNull searchString: String): List<SearchResult>
open fun performSearch(@NonNull searchString: String, @NonNull searchOptions: SearchOptions): List<SearchResult>
Performs a search on the loaded document, returning a list of all search results.
Link copied to clipboard
open fun performSearchAsync(@NonNull searchString: String): Flowable<SearchResult>
open fun performSearchAsync(@NonNull searchString: String, @NonNull searchOptions: SearchOptions): Flowable<SearchResult>
Performs a search on the loaded document.