keepTogether

fun keepTogether(block: ColumnScope.() -> Unit)

Wraps the children added in block in a group the page-break machinery never splits: under the Slice strategy the group moves to a fresh page whole instead of being cut mid-content — the break-inside: avoid of this DSL. Use it for figures with their captions, stat cards, or any cluster where a page break in the middle would read as a bug.

A group taller than one full page still overflows past the bottom margin (there is nowhere whole to move it).