BookmarkNode

data class BookmarkNode(val title: String, val level: Int = 0) : PdfNode

Zero-size marker that adds an entry to the document outline (the bookmark sidebar in PDF readers) pointing at the marker's rendered position.

Supported by the iOS and JVM backends; Android's PdfDocument API has no outline support, so the marker is silently ignored there.

Constructors

Link copied to clipboard
constructor(title: String, level: Int = 0)

Properties

Link copied to clipboard
val level: Int = 0

nesting depth — 0 for chapters, 1 for sections inside the previous level-0 entry, and so on.

Link copied to clipboard

text shown in the reader's outline panel.