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.
Builds a branded invoice document with options.
Builds a certificate document.
Builds a certificate document with options.
Builds a standard invoice document.
Builds a standard invoice document with options.
Builds a receipt document.
Builds a receipt document with options.
Builds a statement document.
Builds a statement document with options.
Functions
@spec branded_invoice(map()) :: Rendro.Document.t()
Builds a branded invoice document.
Delegates to branded_invoice/2 with an empty opts list.
See Rendro.Recipes.BrandedInvoice for the accepted ## Options.
@spec branded_invoice( map(), keyword() ) :: Rendro.Document.t()
Builds a branded invoice document with options.
Delegates to Rendro.Recipes.BrandedInvoice.document/2, forwarding opts verbatim.
The recipe module is the single authority for accepted option keys.
See Rendro.Recipes.BrandedInvoice for the ## Options section.
@spec certificate(map()) :: Rendro.Document.t()
Builds a certificate document.
Delegates to certificate/2 with an empty opts list.
See Rendro.Recipes.Certificate for the accepted ## Options.
@spec certificate( map(), keyword() ) :: Rendro.Document.t()
Builds a certificate document with options.
Delegates to Rendro.Recipes.Certificate.document/2, forwarding opts verbatim.
The recipe module is the single authority for accepted option keys.
See Rendro.Recipes.Certificate for the ## Options section.
@spec invoice(map()) :: Rendro.Document.t()
Builds a standard invoice document.
Delegates to invoice/2 with an empty opts list.
See Rendro.Recipes.Invoice for the accepted ## Options.
@spec invoice( map(), keyword() ) :: Rendro.Document.t()
Builds a standard invoice document with options.
Delegates to Rendro.Recipes.Invoice.document/2, forwarding opts verbatim.
The recipe module is the single authority for accepted option keys.
See Rendro.Recipes.Invoice for the ## Options section.
@spec receipt(map()) :: Rendro.Document.t()
Builds a receipt document.
Delegates to receipt/2 with an empty opts list.
See Rendro.Recipes.Receipt for the accepted ## Options.
@spec receipt( map(), keyword() ) :: Rendro.Document.t()
Builds a receipt document with options.
Delegates to Rendro.Recipes.Receipt.document/2, forwarding opts verbatim.
The recipe module is the single authority for accepted option keys.
See Rendro.Recipes.Receipt for the ## Options section.
@spec statement(map()) :: Rendro.Document.t()
Builds a statement document.
Delegates to statement/2 with an empty opts list.
See Rendro.Recipes.Statement for the accepted ## Options.
@spec statement( map(), keyword() ) :: Rendro.Document.t()
Builds a statement document with options.
Delegates to Rendro.Recipes.Statement.document/2, forwarding opts verbatim.
The recipe module is the single authority for accepted option keys.
See Rendro.Recipes.Statement for the ## Options section.