Builder

constructor(@NonNull title: String)

Creates the builder with default properties.

Parameters

title

Outline element title.


constructor(@NonNull document: PdfDocument, @NonNull title: String, targetPageIndex: Int)

Creates the builder for outline element that represents element in a table of contents. Builder will be prefilled with resolved label for the target page and an action (GoToAction for switching to targetPageIndex.

Parameters

document

Document used for resolving target page label.

title

Outline element title.

targetPageIndex

Target page index.