PDF Template Editor
The PDF Template Editor gives you a visual workflow for designing dynamic documents. You build a template by placing dynamic placeholders onto an uploaded PDF background.
Creating a PDF template

Designing the layout
Once your template is created, set up the visual background and place your dynamic fields.
Managing pages and backgrounds
To use an existing document as a layout, first upload its pages as separate PDF files to the File Explorer.
Placing and configuring placeholders
Placeholders are the dynamic slots where your logic inserts 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, call the fillTemplate function in your backend logic. It is the engine: it takes a data object (say, a JSON object from a database), merges the values into your placeholders, and outputs the finished PDF. For detailed input and output specifications, see the PDF Templates class documentation.
To see these concepts in action, follow our step-by-step guide on automating PDF reports.
Deleting a template
To permanently remove a PDF template and its associated function:
Navigate to the Function Explorer.
Open the PDF Templates class.
Right-click the specific template instance.
Select Remove.

Last updated
Was this helpful?
