Disclosure. Wellkept makes one of the tools described below, the GetWellkept Named PDF Export script. The free routes come first, and we say where each route is the better choice.
The short answer
Affinity Data Merge generates one document with one record per page. Affinity does not have a setting that saves each page as its own PDF named from a data field. You have four options:
- Export page by page in Affinity and type each file name. Fine for a handful of pages.
- Export one PDF, then split and rename it in a second program. Free tools split every page; naming from the page content or a list needs care.
- Build the job on named artboards instead of pages and export the artboards. Works when you plan it before the merge.
- Run a script inside Affinity that exports each page with the name from the CSV. Affinity 3 can run scripts; you can write one or use a ready-made one.
Whichever route you take, the rule is the same: record 1 of the CSV is page 1, record 2 is page 2. If that link breaks, the right certificate gets the wrong name.
What you need before you start
- The merged document. The document Data Merge generated, with exactly one record per page and no extra pages (no cover page, no empty last page).
- The same CSV that made it, in the same order. Do not sort or filter it after the merge.
- A column that makes a good file name, for example
name,skuorid. If two people can share a name, plan to put an ID in the file name too. - A PDF export preset you trust for the job, for example a print preset for a print shop or a digital preset for email.
Why Affinity does not name the files for you
Data Merge is built to generate a document, not to save files. On the official Affinity forum the answer to this question has been the same for years: Data Merge generates a single file, and you split it afterwards. The PDF export then writes the pages or page range you choose; it has no field for “use this CSV column as the file name”.
The same question keeps coming back with the current Affinity 3: in March 2026 someone with 100 training certificates asked how to get one PDF per person named from the CSV, and in September 2026 someone with 300 product labels asked the same. Both ended up with an export, a splitter and a renamer.
A real example: 3 certificates, 3 named PDFs
This is the sample we use for testing. The CSV has three records:
| Record | id | name | course |
|---|---|---|---|
| 1 | 001 | Anna Meyer | Excel Basics |
| 2 | 002 | Max Keller | Excel Basics |
| 3 | 003 | Sara Ahmed | Data, Charts and Reports |
Data Merge turns it into a 3-page document. What we want at the end is three files, each named from the name column, with spaces turned into underscores:
| Page | CSV value | File |
|---|---|---|
| 1 | Anna Meyer | Anna_Meyer.pdf |
| 2 | Max Keller | Max_Keller.pdf |
| 3 | Sara Ahmed | Sara_Ahmed.pdf |

Note the third record: the course contains a comma, so the CSV puts it in quotes ("Data, Charts and Reports"). Any tool you use has to read that as one value, not two.
For labels the name column is usually a product number. A CSV with 00125, 00126 and 00127 should give 00125.pdf, 00126.pdf and 00127.pdf, not 125.pdf. That matters as soon as a spreadsheet program is involved, see the errors below.
Route 1: export page by page
- Open the merged document and choose File › Export, then PDF and your preset.
- Set the area to a single page, for example page 1.
- Save, and type the file name from record 1 of your CSV.
- Repeat for page 2, page 3 and so on. Open a few files to check that each name matches the page.
Good for: up to about ten pages, or a one-off job. Watch out for: typing errors and skipped pages; the work grows with every page and nothing checks it for you.
Route 2: one PDF, then split and rename
Export the whole merged document as one PDF, then split it into single pages in another program and give the pages their names.
- Split every page, free: PDFsam Basic is free and open source and splits a PDF into single pages. The files are numbered, not named, so you still need a renamer and a list of names in the same order.
- Split and name from the page content: the paid PDFsam Visual “split by text” can split where a text area changes and use that text in the file name. This needs the name to be real, readable text in the PDF (not converted to curves) and always in the same spot.
- Rename from a list: a batch renamer can apply the CSV names to the numbered files. It only works if nothing changed the order in between.
Good for: people who already own a PDF tool, or jobs where the name is printed in the same place on every page. Watch out for: a second program and a second step for every batch, and the order check is up to you.
Route 3: artboards and slices
If you design on artboards instead of pages, each artboard can have a name, and Affinity exports artboards as separate files with those names. Free community scripts such as Artboard Exporter and Export every artboard do this in one go.
The catch: Data Merge generates pages, and the artboard names do not come from the CSV. You either name 100 artboards by hand or plan the whole job around artboards before you merge. Some users also report that Slice Studio only showed one slice for a generated multi-page document, in the September 2026 label thread.
Good for: small, planned jobs that you design as artboards from the start.
Route 4: a script inside Affinity
Affinity 3 can run JavaScript scripts (scripting arrived with version 3.2 and is still marked beta). A script can export one page at a time with a file name of its choice, so it can read the CSV and do the naming inside Affinity, with your own PDF preset. If you write code, the Affinity SDK documents the export area for single pages.
A free certificate exporter preview by Kakulu was described in October 2026 (macOS only, names read from labelled text frames rather than a CSV). As of 28 November 2026 its pages no longer load (HTTP 410), so we cannot point you to it.
Our own script is the one we built for exactly this job:


GetWellkept Named PDF Export for Affinity
An Affinity script (.afscript) for the last step after Data Merge: choose the CSV you merged with, pick the name column, add a prefix or suffix if you like, choose one of your PDF presets, check the preview, and Affinity exports one PDF per page into a new folder, with a report. It never overwrites files, stops on empty or repeated names (or adds _2, _3 if you choose), keeps leading zeros and reads comma, semicolon or tab CSVs in UTF-8 or Windows-1252.
Tested in real runs with Affinity 3.3.3 on Windows 10 (64-bit): 1 to 300 records, facing pages and section numbering. 300 named PDFs took 21.8 seconds of export time. macOS and iPad are not tested yet, so they are not listed as supported. Digital download, $29 one time, English and German interface, email support.
Also on Payhip · $29. Independent product, not affiliated with Affinity or Canva.
The four routes compared
| Route | Names from the CSV | Stays in Affinity | Checks the order | Cost |
|---|---|---|---|---|
| Page by page | Typed by hand | Yes | Only by you | Free |
| Split, then rename | From a list or from page text | No, second program | Only by you | Free to paid |
| Artboards | No, artboard names | Yes | Only by you | Free |
| Script (ours) | Yes, any column | Yes | Counts must match, full preview | $29 |
No route can prove that page 7 really shows record 7 without reading the page. The script makes the check easy (it refuses to run when the counts differ and shows every record next to its page and file name), but the final look at the first and last pages is yours.
Errors that put the wrong name on a file
- The CSV was sorted or filtered after the merge. Every name shifts. Keep a copy of the exact CSV you merged with and do not touch it.
- Page and record counts differ. Usually an empty row at the end of the sheet, a header typed twice, or an extra page in the document. With 3 pages and 10 records our script stops with a clear message instead of guessing.
- Two records give the same file name. “Anna Meyer”, “anna meyer”, “Anna:Meyer” and “Anna/Meyer” all become
Anna_Meyeronce the name is cleaned. Without a check the second file overwrites the first. Add an ID to the name, or number repeats asAnna_Meyer.pdf,anna_meyer_2.pdf,Anna_Meyer_3.pdf,Anna_Meyer_4.pdf. - An empty name value. A file called
.pdfor a silent skip. Fill the value or remove the row before you merge. - Characters a file name cannot have.
< > : " / \ | ? *are not allowed on Windows, and names likeCONorNULare reserved. They have to be replaced, for exampleCONbecomesCON_.pdf. - Leading zeros disappear. A spreadsheet that opens the CSV may turn
00125into125and save it that way. Check the CSV in a text editor, or format the column as text before saving. - Accents turn into odd characters. Save the CSV as UTF-8 (in Excel: Save As › CSV UTF-8). Older files in Windows-1252 can work, but should be confirmed:
Jürg Müllermust giveJürg_Müller.pdf. - Facing pages. In a facing-pages document pages 2 and 3 form one spread. Export single pages, not spreads, or the names drift by one. Our tests with spreads 1, 2–3 and so on gave one single A4 page per PDF.
- Section numbering. If a section restarts the page numbers at 10, “page 10” is not the tenth page. Our script counts physical pages, so section labels do not change which page a record goes to.
- An image preset by mistake. A PNG or JPEG preset makes images, not PDFs. Use a PDF preset; our script only offers PDF presets.
- Overwriting last week's files. Exporting into the same folder again can replace files with the same name. Use a new folder per run; our script always creates one.
- The script cannot read the CSV. Affinity only lets scripts use folders you allowed in Settings, on the Scripting page (German: Einstellungen › Skripte), under file system access. Add the folder with your CSV there.
Questions people ask
Can Affinity Data Merge save each record as a separate PDF?
Not on its own. Data Merge generates one document with one record per page. To get separate files you export page by page, split a combined PDF in another program, use named artboards, or run a script inside Affinity that exports each page.
Can the file name come from a field in my CSV?
Not with the built-in export. A script can read the CSV and use any column as the file name, for example name, sku or id. Splitting tools can name files from text on the page or from a list of names in the same order.
Does this work with Affinity Publisher 2?
The page-by-page and split-and-rename routes work with any version. Scripts need the current Affinity 3, which added scripting in version 3.2. Our script was tested with Affinity 3.3.3 on Windows 10 only.
How do I stop two people with the same name from overwriting each other?
Use a unique ID in the file name, for example 001_Anna_Meyer.pdf, or number repeats as _2, _3. Check for repeats after the names are cleaned, because Anna Meyer and anna meyer can turn into the same file name.
Does the script do the Data Merge for me?
No. You generate the merged document in Affinity first. The script exports and names the pages of that document.
Does the script work on a Mac?
It has not been tested on macOS or iPad yet, so we do not list them as supported. It was tested with Affinity 3.3.3 on Windows 10 (64-bit).