Bookmark

Represents a bookmark in a PDF document.

Constructors

Link copied to clipboard
constructor(@IntRange(from = 0) pageIndex: Int)
Creates a new bookmark pointing to a page with generated UUID.
constructor(@Nullable name: String, @IntRange(from = 0) pageIndex: Int)
Creates a new bookmark pointing to a page with generated UUID.
constructor(@NonNull uuid: String, @Nullable name: String, @IntRange(from = 0) pageIndex: Int)
Creates a new bookmark pointing to a page.

Properties

Link copied to clipboard
open val isDirty: Boolean
Whether this bookmark has been modified since the document was last saved.
Link copied to clipboard
The human-readable display name of this bookmark.
Link copied to clipboard
The zero-indexed page number this bookmark points to, or null for non-page targets.
Link copied to clipboard
Handles sorting of this bookmark.
Link copied to clipboard
The unique identifier for this bookmark within the document.

Functions

Link copied to clipboard
open fun clearDirty()
Marks bookmark not dirty.
Link copied to clipboard
open fun compareTo(@Nullable bookmark: Bookmark): Int
Compares this bookmark with another bookmark for ordering.
Link copied to clipboard
open fun equals(o: Any): Boolean
Compares this bookmark with another object for equality.
Link copied to clipboard
open fun hashCode(): Int
Returns a hash code value for this bookmark based on its UUID.
Link copied to clipboard
open fun setSortKey(sortKey: Int)
Sets an integer to determine bookmark sort order.
Link copied to clipboard
open fun toString(): String
Returns a string representation of this bookmark including its UUID, page index, name, and sort key.