search
suspend fun search(document: PdfDocument, query: String, options: PdfSearchOptions = PdfSearchOptions())
Searches every page in document.
Calling this function replaces the previous search. An empty query clears the search. If an older search finishes after a newer one starts, its results are ignored.