Two project conditions change how you export and format the file:
- Target merge engine and character set: Standard UTF-8 (without BOM) works for modern script-driven pipelines, while older desktop data-merge engines (such as legacy Adobe InDesign Data Merge builds on Windows) require UTF-8 with BOM or UTF-16 LE to read accented characters, em-dashes, and non-Latin glyphs without garbling them.
- Regional spreadsheet locale: Systems configured for comma decimal separators often export semicolon-delimited (
;) files by default. When a prepress merge template expects comma-delimited (,) input, unquoted semicolons collapse an entire record into the first column.
CSV Source Specifications
Use these field and file rules when preparing datasets for variable print and versioning workflows, including card text, variable graphic links, and multilingual black-plate swaps.
| Parameter | Production Specification | Condition / Exception |
|---|---|---|
| Character encoding | UTF-8 | Use UTF-8 with BOM or UTF-16 LE when required by the layout merge engine |
| Field delimiter | Comma (,) |
Standardize to comma before handoff; convert semicolon exports from regional spreadsheets |
| Text qualifier | Double quotes ("...") |
Wrap any field containing commas, line-break tokens, or internal quotes (escape internal quotes as "") |
| Column headers | Row 1 only; ASCII letters, digits, and underscores | No spaces, leading digits, punctuation, or duplicate header names |
| Line breaks | Explicit token (\n or <br>) on a single line |
Never leave raw newline or carriage-return characters inside a cell |
| Empty cells | Truly blank (,,) |
Leave blank rather than using N/A, null, or - unless a script strips placeholders |
| Numeric IDs and codes | Plain text format prior to export | Prevents spreadsheet auto-formatting from stripping leading zeros or converting ratios into dates |
| Image and mask paths | Dedicated column matching exact filename case | Prefix headers (such as @image) only when required by the layout template syntax |
Preparation and Merge Steps
- Lock headers to the master layout: Match every Row 1 column name character-for-character against the variable frames and black-plate swap keys in the master layout file.
- Clean text and line breaks: Normalize quotes and dashes, strip trailing whitespace and invisible control characters, and replace multi-line cell breaks with the agreed token (
\nor<br>) so each record occupies exactly one line in the CSV. - Format text-only identifiers: Set card numbers, version codes, and fraction-like stats to plain text before saving so spreadsheet tools do not alter values on export.
- Export and verify structure: Export as UTF-8 CSV and open the file in a plain-text editor to confirm consistent delimiters, intact quotes, and equal column counts on every row.
- Run a dry-run merge proof: Populate the master template and export a PDF/X-1a or PDF/X-4 proof to verify that 100% K fine text fits inside safety margins, variable graphics link at >=300 DPI, and no text overflows its frame.
Sign-Off Criteria Before Printing
- Uniform column count: Every data row contains the exact same number of delimited fields as Row 1.
- Clean glyph rendering: Accented characters, symbols, and non-Latin text appear in the merged PDF proof with zero missing-glyph boxes or substitution artifacts.
- Predictable blank handling: Optional fields left empty in the CSV produce clean whitespace in the proof without leaving orphan punctuation, stray bullets, or literal placeholder words.
- Resolved variable assets: Every variable icon, portrait, or specialty spot mask path resolves to an existing file in the collected artwork package.
Concrete Failure Modes
- Unquoted internal commas: A comma inside unquoted body copy splits one field into two, shifting every subsequent column right by one cell and pushing text into image-path or numeric fields.
- Raw newlines inside cells: An unescaped line break ends the current record prematurely, causing the second half of a card's text to import as a broken new record and misaligning the rest of the deck.
- Encoding mismatch: Exporting as Windows-1252 or MacRoman into a UTF-8 merge pipeline turns accented letters, curly quotes, and symbols into garbled characters on press.
- Spreadsheet auto-conversion: Opening and re-saving a CSV in a spreadsheet without locking column types turns hyphenated numbers (
4-10) into calendar dates and strips leading zeros from sequential IDs (001becomes1). - Mismatched filenames or trailing spaces: A trailing space or wrong letter case in an asset-path cell breaks the link on case-sensitive systems, leaving an empty frame or low-resolution preview on the imposed sheet.
Parent guide Artwork Versioning for Print
Related guides
- Linking Variable Artwork Assets from Source CSV Records
- Verifying Source Records Against Merged Print Artwork
- Preparing Serial Numbers, Edition Codes, and Variable Barcodes
- Mapping Variable Text and Inline Icons to Artwork Fields
- Black-Plate Swap Layer Setup for Multilingual Files
- Versioning Print Files for Reprints, Errata, and Edition Variants