> ## Documentation Index
> Fetch the complete documentation index at: https://docs.doczilla.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Invoices with Tailwind CSS

> Generate invoice PDFs using the "htmlTemplate" option.

From contracts and invoices to social media banners,
leverage our the `htmlTemplate` option for swift document generation.
The `htmlTemplate` uses [Handlebars](https://handlebarsjs.com/)
to render your HTML together with the provided `templateData`.
See [Templating](/templating/introduction) for more info.

## Example

This example generates an invoice PDF using Tailwind CSS.

<CodeGroup>
  <Snippet file="code-group/pdf-html-templates-invoice.md" />
</CodeGroup>

## HTML

<Accordion title="HTML invoice template using Tailwind CSS">
  <Snippet file="code-group/pdf-html-templates-invoice-html.md" />
</Accordion>

## Output

<Frame>
  <iframe height={500} width={'100%'} src="https://assets.doczilla.app/examples/pdf-html-templates-invoice.pdf" />
</Frame>
