Search Result
Represents a result found when searching for text.
See also
Constructors
Link copied to clipboard
constructor(@IntRange(from = 0 ) pageIndex: Int, @NonNull textBlock: TextBlock, @Nullable snippet: SearchResult.TextSnippet, @Nullable annotation: Annotation, @NonNull document: PdfDocument)
Private constructor.
Types
Link copied to clipboard
class TextSnippet
The TextSnippet can be extracted with a search result to present a preview text to the user.
Properties
Functions
Link copied to clipboard
Compares this search result to another based on the page index and text block position.
Link copied to clipboard
open fun create(@NonNull document: PdfDocument, @NonNull annotation: Annotation, @NonNull range: Range, @IntRange(from = 0 ) snippetLength: Int): SearchResult
Create an immutable search result with a preview snippet from annotation text.
open fun create(@NonNull document: PdfDocument, @IntRange(from = 0 ) pageIndex: Int, @NonNull range: Range, @IntRange(from = 0 ) snippetLength: Int): SearchResult
Creates an immutable search result with a preview snippet from page text