Document
Takes a block
Root of a PDF document.
Document(page_size: …) { … }
Example
Document(page_size: "A4") {
Section { Heading("Report").h1 Paragraph("Revenue grew.") }
}
Renders with the class wf-document, stable across releases, so a stylesheet may target it.
| Prop | Type | Meaning |
|---|---|---|
| page_size: | .A4 .A3 .A5 .Letter .Legal |
Paper size |
Attribute families: global, aria, data. Plus the universal props on every element: animate:, exit:, speed:, class:, ref:.