PDF Template Editor
The PDF Template Editor provides a visual workflow for designing dynamic documents. You create a template by placing dynamic placeholders onto an uploaded PDF background.
The Template Editor works exclusively with the PDF Template class. When you create a template, an instance is automatically generated within this class, containing the fillTemplate function required to populate your document with data.
To see the complete process in action, follow our step-by-step guide.
Creating a PDF template

Designing the layout
Once your template is created, you need to set up the visual background and place your dynamic fields.
Managing pages and backgrounds
To use an existing document as a layout, you must first upload the pages as separate PDF files to the Internal File Server.
Deleting a page (using the Trash icon) is a permanent action that removes the page, its background, and all placeholders on it. It is not currently possible to simply replace the background of an existing page.
Placing and configuring placeholders
Placeholders are the dynamic "slots" where your logic will insert data.
Data Matching
The Variable Name you enter (e.g., invoiceNumber) must exactly match the key in the data object you provide in your backend logic later. The editor adds the <> tags automatically.

Populating the template
To bring your PDF to life, use the fillTemplate function within your backend logic. This function is the engine: it takes a data object (like a JSON object from a database), merges the values into your visual placeholders, and outputs the finished PDF document. For detailed input/output specifications, refer to the PDF Templates class documentation.
To see these concepts in action, follow our step-by-step guide on automating PDF reports.
Deleting a template
If you no longer need a PDF template, you can permanently remove it and its associated function:
Navigate to the Functions Library.
Open the PDF Templates Class.
Right-click the specific template instance.
Select Remove.
This action is irreversible. Deleting an instance removes it completey. Any logic in your Flow Builder referencing this template will break.

Last updated
Was this helpful?
