Create Merge Fields in PDF Templates
How to add merge fields to your PDF template.
A PDF merge field is a Text field, Checkbox field, or Radio Button field that exists as a layer of fields “on top” of a PDF. The field name consists of the dataset name, a period (full stop) and the field name, as exemplified below.
Example: Master.CONTACT_FULLNAME
To add merge fields to a PDF template:
- Open the Template Builder.
- In the Copy Field Format area, select PDF.
- Open a PDF to use as your template. A fictional registration form in Adobe Acrobat is used as an example below.
- From the Tools menu, click Prepare Form.
- Select your file or scan a document, then click Start.
- Once the document is finished processing, you may need to edit the size and shape of the form fields:
- The next step is copying the field names from the Template Builder and replacing the form field labels in our PDF.
- Once the document is finished processing, you may need to edit the size and shape of the form fields:
- Return to the Template Builder and select the field you want to merge into the document. The Use Text-Based Merge Fields option has no bearing on PDF so may remain checked or unchecked.
- The copy tool may not work in your browser when PDF is selected for Copy Field Format. Workarounds include manually entering the merge field syntax in your PDF template or selecting Excel for Copy Field Format and removing the prepended "&=" syntax when pasting the syntax into the PDF template.
- The copy tool may not work in your browser when PDF is selected for Copy Field Format. Workarounds include manually entering the merge field syntax in your PDF template or selecting Excel for Copy Field Format and removing the prepended "&=" syntax when pasting the syntax into the PDF template.
- Double-click the text field in the PDF template to open the Text Field Properties dialog and, in a Name field, paste the CONTACT_NAME field name copied from the Template Builder.
- Notice that Conga Composer creates the field with the correct naming convention for PDF merge fields (example: DatasetName.FieldName) – Master.CONTACT_NAME.
- Notice that Conga Composer creates the field with the correct naming convention for PDF merge fields (example: DatasetName.FieldName) – Master.CONTACT_NAME.
- Repeat steps 6 and 7 above to add additional fields.
- Polish the look of your form by resizing the fields to a consistent size and aligning fields.
- Acrobat allows you to select multiple fields by ctrl-clicking each field.
- Resize and alignment options are available by right-clicking on any of the selected fields.
- Save the template and return to the Composer User Interface.
- Run a test merge with the local template file to check that your fields were populated correctly.
Tip: It is recommended to use the same page orientation for all of your pages within your PDF template. If the template contains a mix landscape and portrait orientation, the merge fields can merge sideways and display incorrectly when printing the output document.