Builder

class Builder

Builder for OutlineElement.

Constructors

Link copied to clipboard
constructor(title: String)

Creates the builder with default properties.

constructor(document: PdfDocument, 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.

Functions

Link copied to clipboard

Builds the outline element with data set on this builder.

Link copied to clipboard

Sets action that will be executed when clicking on this outline element.

Link copied to clipboard

Sets element children - outline elements are organized in a tree-like fashion.

Link copied to clipboard

Sets outline element text color.

Link copied to clipboard

Expands/collapses the outline element.

Link copied to clipboard

Sets page label of the target page if one exists and outline action is GoToAction.

Link copied to clipboard

Sets outline element text style.

Link copied to clipboard

Sets outline title.

Link copied to clipboard

Sets outline element text typeface.