FPDFTextSearchContext

abstract class FPDFTextSearchContext(val pageIndex: Int, val query: String, val isMatchCase: Boolean, val isMatchWholeWord: Boolean) : TextSearchContext

An abstract class representing the context for searching text within a PDF document.

Parameters

pageIndex

The index of the page to search.

query

The search query string.

isMatchCase

Whether to match the case of the query.

isMatchWholeWord

Whether to match only whole words.

Constructors

Link copied to clipboard
constructor(pageIndex: Int, query: String, isMatchCase: Boolean, isMatchWholeWord: Boolean)

Properties

Link copied to clipboard
open override val countResult: Int = 0

The number of search results found.

Link copied to clipboard
open override val hasNext: Boolean

Returns whether there are more results to be found in the current search direction.

Link copied to clipboard
open override val hasPrev: Boolean

Returns whether there are previous results in the current search direction.

Link copied to clipboard
open override val isMatchCase: Boolean
Link copied to clipboard
open override val isMatchWholeWord: Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val pageIndex: Int
Link copied to clipboard
open override val query: String

Functions

Link copied to clipboard
open override fun startSearch()

Starts a new search for the query within the specified page.

Link copied to clipboard
open override fun stopSearch()

Stops the current search.