What are HTML Invoice Templates?
HTML invoice templates are custom HTML documents that define your invoice layout. You write the HTML and CSS directly in AffZero’s template editor, place variable placeholders where live data should appear, and AffZero renders the HTML to PDF at generation time. This gives you complete control over the visual design — fonts, colors, logos, table layouts, and branding.Creating an HTML Template
- Go to Invoices → Templates
- Click New Template
- Select HTML Template
- Enter a template name (for internal reference)
- Design your invoice in the HTML editor
- Click Save
Template Structure
A good invoice HTML template typically includes:- Header — your company logo, name, and contact info
- Invoice metadata — invoice number, issue date, due date
- Recipient block — affiliate name, address
- Line items table — services rendered, amounts
- Totals — subtotal, any deductions, final payout
- Footer — payment instructions, notes
Using Variables
Place variable placeholders directly in the HTML using curly braces:Styling Tips
- Use inline styles or a
<style>block — some PDF renderers don’t support external stylesheets - Avoid web fonts loaded via URL for reliable PDF rendering; stick to system fonts or embed font definitions
- Use pt or mm units rather than px for more predictable PDF sizing
- Test with Run Now to see the actual PDF output before scheduling

