docs

Examples

Each folder holds a template.json and its data, plus a README with the render command.

Folder Shows Render
sales-report Dynamic month columns (columnsFrom), multi-page flow, repeated header, totals, fi-FI formatting, page numbers, a KPI strip that repeats on every page (repeat); a combo chart (bars + lines, secondary axis), a horizontal bar chart, and a donut anchored under the table liuska render -t examples/sales-report/template.json -d examples/sales-report/data.json -o sales.pdf
sales-dashboard One-page dashboard: KPI boxes and four charts (line with seriesFrom, stacked bar, donut, horizontal bar), null values, fi-FI liuska render -t examples/sales-dashboard/template.json -d examples/sales-dashboard/data.json -o dashboard.pdf
sales-report-auto autoColumns from a CSV file liuska render -t examples/sales-report-auto/template.json -d examples/sales-report-auto/data.csv -o sales-auto.pdf
invoice Customer block, currency columns, totals, notes anchored under the table, visibleIf liuska render -t examples/invoice/template.json -d examples/invoice/data.json -o invoice.pdf
invoice-pdfa The invoice as PDF/A-3b + PDF/UA-1: tagged structure (H1 in the header, table TH/TD, logo figure with alt), metadata from bindings, the source data embedded as an attachment liuska render -t examples/invoice-pdfa/template.json -o invoice-pdfa.pdf
svg-charts SVG images drawn as vectors: D3 charts pre-rendered with node + jsdom, icons, gradients, clip paths, inline SVG from the data liuska render -t examples/svg-charts/template.json -d examples/svg-charts/data.json -o svg-charts.pdf
order-form Interactive form fields (text, dropdown from data, radio group, checkbox, multi-line, footer field on every page) and a signature field; signing and encryption flags liuska render -t examples/order-form/template.json -d examples/order-form/data.json -o order.pdf

The v1 templates start with "$schema": "../../schema/template.v1.schema.json", so VS Code validates them and shows property docs on hover. cd schema && npm test validates all of them.