← All comparisons
Use case
Generate invoices from data, not from re-editing a design.
Build one invoice template with a row-repeat group for line items and conditional sections for things like a discount line. Then render it per customer by sending the line-item data — no separate template per invoice, no manual layout work per row count.

How it works
- 1Design an invoice layout once, marking the line-items area as a data-repeat group and any optional section (like a discount or tax note) with a data-if directive.
- 2Send the customer's data — name, address, line items array, totals — to the render endpoint. The repeat group expands to fit however many line items you send.
- 3Get back a finished PDF (or a multi-page PDF if the invoice spills across pages), ready to email or store.
