Skip to content

Print merge, ID cards and QR codes

Print merge prints one copy of a design for each row in a list, and fills in that row's values. Use it for ID cards, certificates, name badges, visiting cards for a whole office, and numbered tickets or coupons.

A merge has three parts:

  • The design, with fields where the values go. A field is a column name between « », such as «Name».
  • The list, a .csv file with one row per person.
  • Photos (optional), one per person, matched by file name.

Print merge is in File ▸ Print Merge….

The Print Merge dialog with a class list loaded: 200 records, fields Name, ID, Class and Photo as buttons, 200 photos loaded, Photo column set to Photo, and the preview at record 1 of 200. Behind it, the ID card shows the first student's photo, name, ID and class.

Preparing the list

Save the list as a .csv file. The first row names the columns. After that, each row is one person.

Name ID Class Photo
Rahul Sharma 2025-0141 8 B rahul-sharma.jpg
Priya Patil 2025-0142 8 B priya-patil.jpg
  • Alekh reads .csv and .txt files with commas, semicolons or tabs between the values. Values in double quotes may contain commas.
  • If the list is in a spreadsheet, save it as CSV in UTF-8. Hindi and Marathi names then come through correctly.
  • Alekh merges up to 5,000 rows at a time.

Making the design

You can start from a blank page or from a template. For ID cards, File ▸ New from Template ▸ ID card (CR80) gives a 54 × 85.6 mm card with guides 5 mm in from the edge, and two texts: «Name» and «ID».

Adding fields

  1. Go to File ▸ Print Merge…, and next to Data (CSV) choose your .csv file. Alekh shows how many records and fields it found, and a button for each field.
  2. Click a field's button, for example «Class». Alekh adds it to the page as a new text. If you were editing a text when you opened Print Merge, the field goes into that text instead.
  3. Move and style the field like any other text: font, size, colour, alignment.

You can also type a field yourself in any text: type «, the column name, and ». The name must match the column name in the list's first row. Capital and small letters must match too.

Fields work in artistic text, paragraph text, table cells, and the data of QR codes and barcodes.

Previewing with real values

  • In Print Merge, click Show values. The design shows the first record's values in place of the fields.
  • Use ‹ and › to move between records. Check that the longest names and addresses fit.
  • Click Show fields to go back to the field names.

Photos for each person

A photo frame is a shape on the design that shows each person's own photo.

  1. Draw the frame: a rectangle, a circle or any closed shape.
  2. Select it, then open File ▸ Print Merge….
  3. Under Photos, click Choose folder… and pick the folder of photos, or choose the photo files. Alekh reads JPG, PNG, WebP, GIF, BMP and TIFF.
  4. In Photo column, choose the column that holds the file names.
  5. Click Make selected object the photo frame.

Each photo fills the frame, cropped to the frame's shape and centred. If the frame has an outline, the outline prints on top of the photo.

Photos are matched by file name:

  • Capital and small letters don't matter.
  • The column can leave out the extension (rahul-sharma finds rahul-sharma.jpg).
  • A folder name in the column is ignored (photos/rahul-sharma.jpg works).

If a row names a photo that isn't loaded, Print Merge lists it under Not found with its record number.

Serial numbers and numbered tickets

The «#» button adds a serial number field. Set where it starts and how it counts under Serial number:

Setting Example
From 1
Step 1
Digits 4 gives 0001, 0002, 0003…

To print numbered tickets, coupons or receipt books without a list, leave Data (CSV) empty and type the number of copies next to Or just numbers. Each copy gets the next serial number.

Note

When you load a list into a new design, check that from and step are set to 1. They can start at 0, which prints 0 on every copy.

QR codes and barcodes

A QR code for each person

  1. Go to Object ▸ Insert ▸ QR Code….
  2. In Text, type what the code should hold. Use fields for the values from the list, for example «ID», or a link such as https://example.com/verify?id=«ID».
  3. Choose Error correction: Low (7%), Medium (15%), Quartile (25%) or High (30%). Higher correction still scans when part of the code is damaged or covered, but makes the code denser. Medium is the default.
  4. Set Module size, the size of each square in the code, and click Insert.

On screen, the code holds the field names. When you print or publish, Alekh makes a separate code for each record from its values.

Barcodes

Go to Object ▸ Insert ▸ Barcode… and choose the Type:

Type What it holds
Code 128 Any text
Code 39 Capital letters A–Z and digits 0–9
EAN-13 12 digits (the check digit is added)
UPC-A 11 digits (the check digit is added)

Set Bar height and Narrow bar width. Tick Show the digits to print the value under the bars.

For a barcode with a field, such as «ID», use Code 39, EAN-13 or UPC-A. Until you print, the barcode on screen shows sample bars.

Note

A Code 128 barcode can't hold a field yet: Alekh reports that Code 128 can't encode it. Use Code 39 for IDs made of capital letters and digits.

Printing the merged cards

In Print Merge, click Print…. The Print dialog opens with Print merge ticked and All pages chosen.

  1. Pick the Paper, for example A4 or 12 × 18 in.
  2. Choose a Layout (see the table below).
  3. Leave Columns and Rows at 0 to fit as many as the paper takes.
  4. Keep Crop marks ticked. Use ‹ and › under the preview to check each sheet.
  5. Click Print, or Save PDF to save the sheets as a PDF.
Layout What it does with a list
Gang-run (different pages together) Puts the records in order across each sheet, then the next sheet. Use this for ID cards.
Cut and stack (numbered sets) Arranges the records so that, after the stack is cut, each pile is in order. Use this when the cards must stay in roll-number or serial order.
Imposition (several up) Fills each sheet with copies of one record. Use this for one person's visiting cards, not for a list.

With a 10 mm margin and no gutter, a CR80 card fits 9 to an A4 sheet and 25 to a 12 × 18 in sheet. For 200 cards that is 23 A4 sheets or 8 sheets of 12 × 18 in.

Note

File ▸ Print Cards on a Sheet… opens the Print dialog set to Imposition on 12 × 18 in. For a list of different people, change Layout to Gang-run.

A PDF with one record per page

In Print Merge, click Publish merged PDF. Alekh saves a PDF with each record on its own page, at the design's size, in list order. Card printers that print one card at a time take this kind of file.

File ▸ Publish to PDF… also has a Print merge tick box, if you need its other PDF settings.

Saving and reusing a merge

  • The list and the photos are saved with the design. When you open it again, the merge is ready.
  • To use the design with a new list, open Print Merge and choose the new .csv file.
  • Remove data takes the list off the design. Remove photos clears only the photos.