Page Templates

Page templates are additional pages stored within the PDF that can be appended or shown based on a JavaScript trigger or action within a document. Page templates can be used to create more dynamic PDFs by being able to add pages that don’t appear to originally be a part of the document.

For example: If you wanted to create an inspection form with the option to add additional pages for details you can create a page template of the additional details page and set a button to add additional pages to the PDF as needed.


How to Create Page Templates

  1. Open/create a PDF document
    • Note: The page you wish to use as a template must already exist in the document
  2. Launch the Page Template dialog by going to the Pages Tab > Templates
  3. Click "Add" and set the settings for the page template
  4. Once done click OK to set the page template

After the page template has been created you will need to set an event or trigger to use the Page Template. To do this, you can add JavaScript to the document that will create the new page referencing the page template name set in step 3

expTplt = getTemplate("{template name here}");


expTplt.spawn() options:

    • insertAtPage: page number to insert page
    • renameFields: true/false to rename fields on page template being inserted
    • newPage: true = add page on top of existing page / false = create new page

Page Template Settings

Name: The name of the page template. Used to reference the template later in the JavaScript used to generate the templates

Visible: Whether or not the page set as a template is initially visible within the document

Page Selection: Use the page navigation tools and preview to select the page to use in the template