Knowledge Base - Experlogix Documents

PDF Templates

The PDF Template Designer streamlines document automation by allowing users to upload and reuse existing PDF documents to create templates, significantly reducing the time and effort needed to build documents from scratch.

  1. Create a PDF Template: Upload a PDF document and open it as a template within the PDF designer interface.

  2. Design a PDF Template: Map PDF fields to corresponding data set fields, and add logic to your PDF template.

Create PDF Templates

In Experlogix Documents, PDF templates are created from AcroForms or static XFA PDF files uploaded into the system.

Field Mapping Compatibility

Supported field types:

  • Check boxes

  • Combo boxes

  • Dates

  • List boxes

  • Numbers

  • Radio buttons

  • Rich texts

  • Texts

The following field types are not yet supported for mapping:

  • Bar codes

  • Buttons

  • Untyped fields

  • Files

  • Passwords

  • Signatures

  • Images

Create a PDF Template

Use the following steps to create your PDF template:

  1. In the Templates section, select Add New, then Fillable PDF Template from the dropdown menu.

  2. Upload a PDF document.

The uploaded file must meet the following requirements:

  • PDF AcroForm or static XFA format

  • Maximum file size: 200 MB

  • Not password-protected

  1. Select Template Language (for more information, see Template Languages). If only one language is available, the system will not prompt the user to select a language.

  2. Choose one or more Data Sets

  3. Add a Description.

  4. Select Create.

  • At the Create PDF Template step, only the Template Name is mandatory; the PDF document, data set(s), and language(s) can be added later.

  • When you click Create, if a PDF document has been uploaded, you'll be directed to the Design screen; otherwise, the Template Edit view will open.

Design PDF Templates

You can map fields and add logic to your PDF template in the Design screen. Mapping is the process of binding individual fields in a PDF template to specific data fields in a data source, such as a Form field or an XML node. This allows the generated document to be dynamically populated with data-driven values.

Mapping is the process of binding individual fields in a PDF template to specific data fields in a data source, such as a Form field or an XML node.

This allows the generated document to be dynamically populated with data-driven values.

Users can access the Design screen in two ways:

For a new template:

Upload your PDF document in the Templates view and get directed to the Design screen.

For an existing template:

  1. In the Templates View, select the template you want to design.

  2. Select the Actions menu (⋯) on the right and select Design from the dropdown.

  3. Choose the Template language (for more information, see Template Languages).

  4. Select Design.

or

Access the Design screen within the Template Edit view by selecting the Design button.

Design Screen

design screen new.png

The Design screen allows you to:

  1. Map your data into template fields: Link fields from your data set(s) to the relevant template fields.

  2. Edit mappings: Update PDF fields mappings by linking them to different data set fields.

  3. View template fields: Use the filter to display all fields (default), mapped fields, or unmapped fields, and choose whether to sort the PDF fields alphabetically or by their document order. Refer to Field Mapping Compatibility for supported and unsupported field types.

  4. View data sets: Filter data set fields by names, and choose to show either display or schema names.

  5. Zoom In or Out: Use the zoom controls in the toolbar at the top of the PDF viewer (–, +, or percentage dropdown) to adjust the template scale.

  6. Download template: Access the PDF document offline.

  7. Manage data sets: Add, or remove data sets used in your template.

  8. Replace PDF document: Replace the current document in the Design screen by selecting Replace PDF from the ellipsis menu and uploading a new PDF document.

  9. Preview template: Preview Mapping calculates mappings and displays the final output using sample data.

  10. Publish template: Publish the changes made to your template.

  11. Delete: This action will delete the PDF template language variant. Select the ellipsis menu (⋯) in the top right corner, and select Delete language variant from the list.

Deleting a language variant removes only the template for that variant, not the language itself.

Removing a template language variant is permanent and cannot be undone.

Mappings

Users map PDF fields to corresponding data set fields, enabling the template to retrieve the necessary data during document generation.

Create Mappings

Open your PDF template in the Design Screen.

If one or more data sets are associated with the template, the data sets view opens automatically when the user selects a PDF field.

mapping a field new.png
  1. Select the target PDF field for data mapping — either from the list of available PDF fields or directly within the PDF document.

  2. Select a data set field from the available data set(s): browse or filter the data set(s) to find the desired field.

  3. Create the mapping by double-clicking the data set field or by using the Map button.

If a PDF field appears multiple times in the document, the same mapping is automatically applied to all of its occurrences.

Read-only fields cannot be mapped.

Expression Mappings

An expression is a combination of functions, fields, operators, and values used to calculate and produce a result. By supporting Power Fx alongside standard field-to-field mapping, Experlogix Documents empowers you to create more dynamic and customized data outputs. For instance, you can seamlessly concatenate text fields like merging a first and last name, apply conditional logic to display dynamic order statuses, or perform real-time mathematical calculations directly within your data fields.

Expressions are essential for scenarios that require more than just data transfer:

  • Calculated Values: Define values that aren't present in your data set.

  • Data Manipulation: Transform existing values, such as changing text formatting or performing calculations..

  • Complex Logic: Create advanced conditions that go beyond standard mapping capabilities.

Experlogix documents uses the standard Power Fx expression engine. For a complete list of supported functions and syntax examples, you can refer to the official Microsoft Power Fx formula reference.

Use Case: Merging Fields

A user needs to combine the Street and House Number field values into a single Address 1 field. To do this, they create an expression mapping and use the following concatenation formula:

Concatenate(New_Contact_Form.street, " ", New_Contact_Form.houseNumber)

The result: The PDF automatically merges both values into one seamless line, ensuring the address is formatted perfectly without any manual data changes.

PDFExpressionsall.png

Create a New Expression Mapping

PDFExpressionsNew.png

To create a new expression mapping:

  1. Locate the PDF field you wish to map.

  2. In the Data Set panel, select the arrow next to the Map button to open the dropdown menu and select Expression.
    The edit Mapping panel opens, showing the expression Build editor.

    PDFExpressionsEdit.png
  3. Enter a Power Fx expression in the editor and select Apply.

You can enter field names manually or simply double-click a field in the Data Set view to insert it into your expression.

  1. Preview your template using an available Sample to ensure the changes are applied correctly.

  2. Publish to save the changes.

The system allows you to create, read, update, and delete (CRUD) expression mappings just as a field mappings.

Convert a Field Mapping to an Expression

PDFExpressionsChangeType.png

You can update the mapping type at any time by switching between Field and Expression types:

  1. Select the mapping.

  2. In the Mapping edit view > Mapped to, use the radio buttons to switch from Field (default) to Expression.

  3. Enter your Power Fx expression in the editor and select Apply.

  4. Preview and Publish

View Mappings

Once the mapping is successful, the mapping icon appears next to the mapped PDF field, indicating that the field has been successfully linked.

mapped fields new.png

Edit Mappings

Modify existing PDF field mappings by linking them to different data set fields.

To edit a mapping:

  1. Select the PDF field you want to remap.

    remapping pdf field new.png
  2. Select the Mapped to field. The Data sets pane opens.

  3. Choose a replacement field from the data set by double-clicking it or using the Update button (which becomes active upon selection).
    This updates the mapping, closes the data set pane, and enables the Apply button.

  4. Select Apply

Remove Mappings

  1. Select the PDF field from which you want to remove the mapping.

  2. Select Unmap in the ellipsis (⋯) menu of the Mapping pane.

Users can expand the Mapping pane (hiding the PDF viewer) to provide more space for editing, or minimize it to restore the original view.

mapping pane.png
  1. The PDF field is successfully unmapped from the data set field. The mapping icon is no longer displayed next to the PDF field.

Invalid Mappings

Invalid mappings are mappings that no longer reference valid fields in the data set or the PDF document. Mappings may become invalid if the associated data set is modified or if a new PDF document with a different structure is uploaded. To ensure documents are generated correctly, review and update your mappings whenever you change the data set or update the PDF.

Mappings may become invalid if the associated data set is modified or if a new PDF document with a different structure is uploaded.

To ensure documents are generated correctly, review and update your mappings whenever you change the data set or update the PDF.

Example 1:

Replacing the PDF document leads to Invalid Mappings

As a template designer, you are working on a template that already contains several mappings.

After receiving an updated version of the PDF document from your team, you replace the PDF currently used in your template with the new one in the Design screen.

The new PDF document is successfully uploaded, but some mappings became invalid since the new document has a different structure: certain PDF fields have been modified or removed.

Solution:

Review the list of invalid mappings, then remap the affected fields or remove the mappings that are no longer needed for this document.

Example 2:

Data set modification leads to Invalid Mappings

Maria is working on a PDF template, mapping the necessary fields and publishing the template when it’s ready. Later, she updates the data set used in the template by adding some fields and removing others, and finishes her work for the day.

The next morning, when she opens her template, she notices that several mappings are marked as invalid. These mappings no longer reference valid fields in the data set.

Solution:

Maria opens the mapping panel to identify which fields are affected. If a field is no longer needed in the template, the mapping can be removed. If the data is still needed, she navigates to the data sets section and adds the missing fields back to the template.

Viewing and Filtering Sample Data in the PDF Template Designer

When designing a Template, you can load real sample data into the Data Sets pane. This allows you to preview exactly what your mapped fields will look like and enables searching and filtering the data tree using actual sample values.

Note: If the data set mapped to your template does not have any samples associated with it, the "Select sample" option will be disabled.

To select a sample:
  1. In the Data Sets pane, hover over the root entity of the data set.

  2. Select the ellipsis menu (...) that appears next to the root name.

  3. Select Select sample from the actions menu.

  4. Choose a sample from the dropdown list in the modal window and choose Select.

Once selected, the sample name is displayed next to the root entity, and the actual sample values will appear alongside their corresponding fields. You can also toggle the visibility of these values using the Show/Hide sample values option in the pane actions menu.

Filtering the Data Tree

The Data Sets pane allows you to efficiently filter and navigate through your data set entities and fields. You can search by:

  • Display name

  • Schema name

  • Actual sample values (if a sample is currently active)

If a search filter match is found within a collapsed view (e.g., a parent entity or fields list), the tree automatically expands to reveal the sub-entities or fields containing the matching value.

Preview PDF Templates

Preview serves as a proof of your document before it goes into production, giving you a quick, real-time view of how your mapped data will appear in the PDF document. It validates that each field is mapped correctly and that the output matches your expectations, helping catch errors early and ensuring the final document is accurate.

To create a preview, at least one sample must be added for a data set linked to the template. See Data Sets Samples Tab for instructions on adding samples to data dets.

When there are no data sets associated with the template, the Preview button is unavailable. See Design Screen and Data Sets for guidance on adding data sets to templates.

To trigger the preview from the Design Screen:

  1. Select the Preview button.

  2. In the pop-up window, select a Sample for each Data Set. Samples are listed alphabetically; by default, the first sample is preselected.

  3. Confirm your choice by selecting Preview (or cancel if required).
    The PDF document preview is opened in a new tab.