PageSpec
data class PageSpec(val size: PageSize, val padding: Padding, val content: ColumnNode, val pageBreakStrategy: PageBreakStrategy, val header: (PageContext) -> ColumnNode? = null, val footer: (PageContext) -> ColumnNode? = null, val watermark: BoxNode? = null)
One logical page in the source DSL. May expand into multiple physical PDF pages at render time when content overflows.
Constructors
Link copied to clipboard
constructor(size: PageSize, padding: Padding, content: ColumnNode, pageBreakStrategy: PageBreakStrategy, header: (PageContext) -> ColumnNode? = null, footer: (PageContext) -> ColumnNode? = null, watermark: BoxNode? = null)
Properties
Link copied to clipboard
Link copied to clipboard
same as header but rendered at the bottom of every physical page.
Link copied to clipboard
optional builder invoked once per physical page; the resulting ColumnNode is rendered above the body content and excluded from the body's content area. Pure of side effects — the renderer may invoke it more than once.
Link copied to clipboard