> ## 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](https://docs.doczilla.app/templating/introduction.md) for more info.

## Example

This example generates an invoice PDF using Tailwind CSS.

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

## HTML

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

## Output

[https://assets.doczilla.app/examples/pdf-html-templates-invoice.pdf](https://assets.doczilla.app/examples/pdf-html-templates-invoice.pdf)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.