Template Name
The display name for your template. This appears in:- Templates list
- File details (when generated from this template)
- API responses
- Use descriptive names: “Monthly Invoice”, “Shipping Label 4x6”
- Include version or variant: “Contract v2”, “Receipt (Dark Theme)“
Output Name
Define the filename for generated PDFs using Handlebars variables:{"invoiceNumber": "INV-001", "date": "2024-12-15"}, this produces:
- Any field from your
templateData - All Handlebars helpers (formatDate, currency, etc.)
The
.pdf extension is added automatically. Don’t include it in your output name.Print Background
Toggle whether background colors and images are included in the PDF.
Default: Enabled
Orientation
Paper Size
Select from standard paper sizes:Custom Size
When “Custom” is selected, specify dimensions in millimeters:- Width — Page width in mm
- Height — Page height in mm
- Shipping label (4” × 6”): 102 × 152 mm
- Business card: 89 × 51 mm
- Square: 200 × 200 mm
Margins
Set page margins in millimeters:
Default: 10mm on all sides
Margin Tips
- Invoices/Documents: 15-25mm for professional appearance
- Labels: 2-5mm to maximize print area
- Borderless: 0mm (printer may still add margins)
- Headers/Footers: Ensure top/bottom margins accommodate header/footer height
Settings via API
Override template settings in your API request:Raw HTML Settings
When generating from raw HTML (no template), include settings in theoptions object:

