Skip to main content
The Fileloom Template Editor is a powerful visual environment for creating PDF templates. Access it by clicking any template or creating a new one from the Templates page.

Editor Layout

The template editor consists of three main areas:

Settings Panel

The left panel contains template configuration:
  • Template Name — Identifying name for the template
  • Output Name — Dynamic filename pattern (supports Handlebars)
  • Print Background — Include background colors/images
  • Orientation — Portrait or Landscape
  • Paper Size — A4, Letter, Legal, and more
  • Margins — Top, right, bottom, left (in millimeters)
  • Header/Footer — Enable and configure page headers/footers
See Settings for detailed configuration options.

Code Tabs

The editor provides three tabs for template content:

HTML Tab

Write your template markup with Handlebars syntax:

CSS Tab

Style your template with CSS:
CSS is automatically injected into your HTML. You don’t need to add <style> tags — just write pure CSS.

Test Data Tab

Enter sample JSON to test your template:

Live Preview

The right panel shows a real-time preview of your PDF:
  • Automatic Updates — Preview refreshes as you type
  • Actual Rendering — Uses the same Handlebars engine as the API
  • Page Simulation — Shows background, headers, and footers
  • Zoom Controls — Zoom in/out to inspect details
The preview uses the same rendering engine as the API, so what you see is exactly what you’ll get.

Auto-Save & Publishing

Auto-Save (Drafts)

Your work is automatically saved as a draft:
  • Changes save every few seconds
  • “Draft” indicator shows unsaved changes
  • Drafts are not available via API

Publishing

Click Publish to make your template available via API:
  • Creates a new version
  • Previous versions are preserved
  • Published templates can be used immediately
See Version History for version management.

Next Steps

Settings

Configure paper size, margins, and output options

Headers & Footers

Add page numbers and repeated content

Version History

Manage template versions

Handlebars Basics

Learn template syntax