MultiColumnNode

data class MultiColumnNode(val children: List<PdfNode>, val count: Int, val gap: Dp, val spacing: Dp) : PdfNode

Newspaper-style multi-column flow: children are measured at the column width and distributed left-to-right into count equal-width columns, balanced so the columns end up roughly the same height.

Children keep their source order — the first children fill the first column. The whole block participates in page breaking as one unit (columns don't continue across pages); split long content into multiple columns { } blocks when it can exceed a page.

Constructors

Link copied to clipboard
constructor(children: List<PdfNode>, count: Int, gap: Dp, spacing: Dp)

Properties

Link copied to clipboard
Link copied to clipboard
val count: Int

number of columns.

Link copied to clipboard
val gap: Dp

horizontal space between adjacent columns.

Link copied to clipboard
val spacing: Dp

vertical gap between items inside a column.