Rendro.Recipes (Rendro v0.2.0)

Copy Markdown View Source

Canonical PDF recipes for standard document types.

These recipes provide a starting point for common documents like invoices and reports, demonstrating best practices for layout and pagination.

Summary

Functions

Builds a branded invoice document using the canonical branded recipe.

Builds a standard invoice document using the canonical Tiered Composition recipe.

Functions

branded_invoice(data)

@spec branded_invoice(map()) :: Rendro.Document.t()

Builds a branded invoice document using the canonical branded recipe.

Delegates to Rendro.Recipes.BrandedInvoice.document/1, which registers the shipped demo brand font and logo before composing the document.

invoice(data)

@spec invoice(map()) :: Rendro.Document.t()

Builds a standard invoice document using the canonical Tiered Composition recipe.

Delegates to Rendro.Recipes.Invoice.document/1 which uses explicit page template regions and sections instead of legacy header: / footer: kwargs.