Recipes

June 10, 2026 · View on GitHub

Task-oriented guides: each page shows how to use one slice of the canonical API, with copy-pasteable snippets verified against the current release.

Available recipes

RecipeCovers
charts.mdNative vector bar / line / area / pie-donut charts: data–spec–style layers, axis & grid toggles, point markers, value-label halos, legend placement, translucent area fills
rich-text.mdRichText mixed-style runs in one paragraph: bold/accent/styled segments, inline links, inline images, inline shapes and checkboxes
lists.mdaddList: quick bulleted lists, marker customisation, nested lists with per-depth markers, spacing and styled items
timelines.mdaddTimeline: markers (dot / circle / numbered / square) on a connector rail, geometry and text-style controls, pagination opt-ins
keep-together.mdkeepTogether() / keepEntriesTogether() — blocks that relocate whole instead of orphaning a heading at a page break
shapes.mdFilled cards, dividers, accent bars, lines, spacers, ellipses, images
shape-as-container.mdCircles/ellipses/rounded cards holding clipped children, ClipPolicy
absolute-placement.mdCanvasLayerNode — children at explicit (x, y)
layered-page-design.mdPage background vs. row vs. layer stack vs. canvas — choosing the layer
page-backgrounds.mdPer-page fills: sidebars, bands, layered tints
transforms.mdRotation, scaling, skewing
tables.mdTabular layouts: columns, headers, zebra rows, composed cells
themes.mdBusinessTheme presets and custom palettes
barcodes.mdQR / Code 128 / Code 39 / EAN / UPC / PDF417 / DataMatrix, tinting, quiet zone, card centring
images.mdSources (bytes/path), sizing precedence, STRETCH/CONTAIN/COVER fit modes, images in rows and cards
pdf-chrome.mdMetadata, watermarks, running header/footer with {page}/{pages}/{date}, protection, links and outline bookmarks
translucency.mdDocumentColor.rgba / withOpacity: which primitives honour alpha, byte-identity for opaque colours, layered tints
docx-export.mdSemantic DOCX export: 1:1 node mapping, chart/shape-container fallbacks, skipped kinds
snapshot-testing.mdLayout-snapshot regression testing in consumer projects, baseline update flow
streaming.mdStreaming PDFs to HTTP responses
extending.mdExtension patterns: custom nodes via the NodeDefinition SPI

Every shipped feature now has a recipe; the runnable examples remain the end-to-end references.