This tutorial covers the basic merge and output capabilities of the DesignMerge Pro software. The sample document consists of a single-page form letter that has several variable elements, including text and pictures. Additionally, you will learn how to use DesignMerge Rules to apply conditional processing while merging. You will merge data from a tab-delimited text file into the form letter document to produce pages containing each version of the variable data. This tutorial also covers how to produce a DesignMerge PDF file containing the merged pages.
This tutorial provides detailed step-by-step instructions for each of the four basic steps in using DesignMerge to produce a variable data job:
The sample document is a simple one-page document to represent a sample form letter. The name of the document for this tutorial is Form Letter.indd and it exists in the 1) Form Letter Tutorial folder.
DesignMerge Variable Links have not yet been placed in this document. This tutorial will show you how to assign Variable Links to text for the Inside Address and Salutation, to a text frame for Contact Information, to a picture frame for a Credit Card Logo, and to a picture frame for a Map.
When any DesignMerge dialog window or documentation refers to a data file, it’s referring to a delimited text file that contains the data for a variable document. DesignMerge accepts simple, delimited text files (for example, a comma-separated or tab-delimited text file) that have been created on a Macintosh, PC/MS-DOS (Windows), or UNIX system. The data file can use either ASCII encoding or UTF-8 Unicode encoding for the text it contains. Delimited text files are easily created using most of the popular database or spreadsheet software programs. For more information, see Data Files and Data Source Definitions.
The variable data for this tutorial is contained within a tab-delimited text file named Form-Letter-Data.txt which exists in the 1) Form Letter Tutorial folder. This data file holds six records (lines), each containing ten fields (columns) of data. The first record in this tutorial’s data file contains names for the fields. The remaining five records contain data for variable content in a document. The first seven fields provide data for Variable Text. Note that the Address #2 field does not contain data in two of the records. Next, two fields (Logo and Contact) contain names of files that are located in the same folder as the tutorial document. DesignMerge is able to merge (place) external graphic files and text files when they are referenced by either a file name or the full path to the file. Finally, the last field indicates a preferred customer status.
Please note that although this data file is small for training purposes, DesignMerge can merge data files that contain any number of records and the records may contain up to 1500 fields.
When you have a document that does not yet contain any Variable Links, then the first step is to let DesignMerge know some things about the data file you will be using. This is accomplished by setting up the document’s data source definition (also referred to as the document’s DDF).
A DDF is simply a view or description of a data file. For example, a DDF describes the following characteristics of a data file:
It is easy to set up a document’s DDF because DesignMerge provides a Setup feature to determine the characteristics of a data file automatically.
Generally, you will prefer to set up a document’s DDF only once, when the document has not yet been set up. Running Setup on a previously set-up DDF will reset all of the DDF’s settings, including its definitions of Variable Links and Rules. If the document already contains Variable Links, resetting the document’s DDF could cause the document to encounter errors when merging.
A common mistake that new users make is to run Setup every time they receive a new data file for a document whose DDF has already been set up. The fact is that as long as the structure of the data file has not changed (i.e., as long as it still has the same number of fields as before and the fields are in the same order), then there is no reason to rerun Setup. When you receive an updated data file, just select the new data file when prompted to do so. The current settings will continue to work just fine! If you wish to change a setting in a document’s existing DDF, instead of rerunning Setup, you can simply click the Edit button on the Data Source Definitions dialog window. You can then change individual settings without affecting the other settings. For more information about editing a DDF, see Data Files and Data Source Definitions.
Follow the steps below to set up the DDF for this tutorial:
For this tutorial, choose Delete and Remove Empty Line to indicate that you would prefer DesignMerge remove any empty Variable Link and any empty line this produces from merged versions of this document.
The Setup should now look like this:
Setting up a DDF creates a list of Variable Links that you can assign to content in the document. Then, when you merge the data file with the document, the content that is assigned to Variable Links will display data from the data file. DesignMerge provides several different types of Variable Links that you can place in a document. This tutorial will introduce you to three of these types: Text, Picture, and Article. The other two types (Barcode and GroupPicture) are introduced in other tutorials.
By default, the Type setting for each of the Variable Links that Setup creates is set to Text, however you can change a Variable Link’s settings whenever you wish. Also, if you assign a Variable Link to a picture frame, DesignMerge will automatically treat that Variable Link assignment as a Variable Picture.
DesignMerge provides a panel, as shown below, to assign Variable Links to content in a document and also to see which settings have been applied to Variable Links that have already been placed in a document:
To show the panel, open the DesignMerge menu and select View > DesignMerge Panel. The DesignMerge panel is grouped by default with its companion panels, the CopyFit panel and the Rules panel. You can manipulate the arrangement of these panels in the same manner as any InDesign panel.
The DesignMerge panel interacts with the current selection in the document. Some of the options on the panel will be dimmed when no content is selected in the document, and the Sequence setting (which is introduced in Tutorial #3) will always be dimmed by default. Additionally, the DesignMerge panel will not display a Style menu if the Price Style optional module has not been included in your product order. For more information about the features provided by this panel, see DesignMerge Panel.
Note the DesignMerge panel provides a button to display a list of all of the Variable Links and Rules that have been set up in the DDF (the same lists are available in the drop-down menus that are presented on the top portion of the panel). Click this button on the panel to switch between collapsed and expanded mode as you prefer:
The Form Letter document requires Variable Text Links for the inside address. To place these Text Links in the document, follow the steps below:
- You can also assign a Variable Link to a selection of text by dragging the name of the Variable Link from the Links list on the panel and dropping it on top of the text frame that contains the selected text.
- The green underscores that mark Text Links are visible when the InDesign Screen Mode is set to Normal. To hide the green underscores, open the InDesign View menu and select Screen Mode > Preview. Note this does not unlink or hide the linked content; it’s solely a viewing option for the document.
- You can eliminate the need to click the Assign button for each Variable Link assignment by selecting the One-Click Link Assignment option in DesignMerge preferences (DesignMerge > Preferences). When One-Click Link Assignment is selected, DesignMerge will assign settings to a text selection each time you make a selection on the panel.
- You can also set up DesignMerge to exclude any preceding or trailing New Paragraph, New Line, and Tab characters when placing a Text Link in a document by selecting the Smart Tags option in DesignMerge Preferences.
The Form Letter document additionally requires a Variable Picture Link for the logo of a credit card, and the 1) Form Letter Tutorial folder contains three graphic files that provide different versions of a credit card logo (VISA.eps, AMEX.eps, and MSTR.eps). These filenames are in the Logo field in the data file. Note that while the graphic files for this tutorial’s Variable Picture Link are all in an EPS format, DesignMerge can place any type of graphic file format that InDesign supports.
By default, DesignMerge will size a graphic file to fit within its assigned picture frame. However, you can apply different settings. To change the Logo Variable Link’s settings, follow the steps below:
To place this Variable Link in the document, follow the steps below:
A third type of Variable Link that you can place in a document is a Variable Article Link. Use a Variable Article Link when you would like DesignMerge to place a text file in a frame. For example, this tutorial’s document has a text frame for displaying contact information, and the 1) Form Letter Tutorial folder contains three text files that provide different versions of contact information (contact1.txt, contact2.txt, and contact3.txt). These filenames are in the Contact field in the data file. Note that while the text files for this tutorial’s Variable Article Link are all in a plain text file format, DesignMerge can place any type of text file format that InDesign supports.
By default, each Variable Link is originally set up as a Text type of Variable Link. If you would prefer for a Variable Link to treat data as the name of a text file to place in the document, then the Variable Link’s Type must be set to Article. To change the Contact Variable Link’s settings, follow the steps below: