How to Mail Merge into a PDF Template from a CSV File
Fill a PDF certificate, letter or badge with names from a spreadsheet: preparing the CSV, placing merge fields, fitting long names and choosing the output.

How to Mail Merge into a PDF Template from a CSV File
Mail merge used to mean Word and a printer. Today the template is often a PDF designed in Canva, InDesign or PowerPoint, and the people are in a spreadsheet. You need one personalised PDF per person: a certificate, a letter, a badge or a label. This guide walks through the process with PDF Mail Merge from CSV.
Step 1: prepare the template
Design the document with empty space where the personal details go. For a certificate that means a blank line under "This certifies that", for a letter a blank address block. Export it as PDF. Keep a little more room than the longest name needs.
Step 2: prepare the data
Put the data in a spreadsheet with one row per person and one column per field. The first row must contain column names: Name, Course, Date, Address and so on. Save or download as CSV.
Tips for clean data:
- remove empty rows at the end;
- avoid line breaks inside cells;
- format dates as you want them printed, for example "12 March 2026";
- check spelling of names carefully; certificates with wrong names are reprinted.
Step 3: place merge fields
Draw a box on the template wherever a value should appear and type the column name in curly brackets, such as {Name}. A box can mix fixed text and several columns: {City}, {Postcode} or Completed on {Date}. For each box choose the size, colour, alignment and weight. Centred alignment suits certificates; left alignment suits letters.
The preview fills the boxes with the first data row, so you see the real result before merging.
Step 4: handle long values
Names vary a lot in length. If a value is wider than its box, the text shrinks until it fits. Look for the longest name in your data and preview with that row (put it first temporarily) to make sure the reduced size is still readable.
Step 5: choose the output
- One PDF per row for emailing. File names come from a pattern such as
Certificate-{Name}, so each person gets a file with their name on it. - One combined PDF for printing. All copies follow each other in one file, ready for a single print job.
Test with a few rows first: type 1-3 in the rows box, check the result, then run everything.
Non-English names
Names with accents or letters from Greek or Cyrillic need a font that contains them. The tool embeds a Unicode font automatically when your data needs it, so names such as Zoë, Łukasz or Дмитрий print correctly.
Example
A first-aid trainer has 24 participants. The CSV has Name, Course and Date columns. Three merge fields on the certificate template produce 24 files named Certificate-Aisha Khan.pdf and so on in one ZIP. A second run with the combined option gives a 24-page file for the office printer.
Common problems and fixes
- A field shows {Name} instead of a name. The column name in the box does not match the header row. Check spelling and stray spaces in the CSV header.
- Accented letters look wrong. The CSV may not be saved as UTF-8. In Excel, choose "CSV UTF-8" when saving.
- Text sits too high or low. Draw the box to the height of the text line; the value is centred vertically in the box.
- Commas split a value. Values containing commas must be in quotes, which spreadsheet exports do automatically.
Data protection
The spreadsheet often contains personal data. The tool processes it in your browser and does not upload it, but the PDFs you create contain the data, so send each file only to the right person and store them according to your organisation's rules. This is general guidance, not legal advice on data protection law.


&c=%23b45309&k=from-pdf)
