Skip to main content
The Settings panel (left side of the editor) controls how your PDF is generated.

Template Name

The display name for your template. This appears in:
  • Templates list
  • File details (when generated from this template)
  • API responses
Best practices:
  • 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:
With test data {"invoiceNumber": "INV-001", "date": "2024-12-15"}, this produces:
Available variables:
  • 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.
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
Example custom sizes:
  • 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
If using headers or footers, the top/bottom margin must be at least as tall as the header/footer content. Fileloom adjusts this automatically, but very small margins may cause overlap.

Settings via API

Override template settings in your API request:
API options override template settings for that specific request.

Raw HTML Settings

When generating from raw HTML (no template), include settings in the options object:
See API Reference for all available options.