Skip to content

QR Code PDF Mail Merge

Embed dynamic QR codes into your merged PDFs. Generate unique scannable codes for URLs, verification links, event check-in, product IDs, and more from spreadsheet data.

What Is QR Code PDF Mail Merge?

QR code PDF mail merge lets you embed dynamic, per-recipient QR codes into your merged PDF documents. Each row in your spreadsheet produces a unique QR code — different URLs, different product IDs, different verification links — all generated automatically and placed precisely on the page.

The QR codes are generated at high resolution as PNG images and embedded directly into the PDF. They scan reliably from both printed and digital documents.

Who Uses This?


How to Add QR Codes to Merged PDFs

Step 1 — Prepare Your Spreadsheet

Ensure your spreadsheet has a column with the data you want to encode as QR codes. Each cell value becomes one QR code.

Example spreadsheet:

NameEmailVerificationURLCertificateID
Alice Chenalice@example.comhttps://verify.example.com/c/ABC123CERT-2025-0042
Bob Martinezbob@example.comhttps://verify.example.com/c/DEF456CERT-2025-0043

You can encode any column as a QR code — URLs, IDs, email addresses, plain text, or structured data.

Step 2 — Place a QR Code Field

In the Mergram editor, drag the column header from the sidebar onto your PDF page. In the field properties panel, set the render type to QR Code.

Position the bounding box where you want the QR code to appear. QR codes scale to cover the bounding box width and maintain their square aspect ratio — they will always be perfectly square regardless of the bounding box dimensions.

Recommended size

For reliable scanning, make the bounding box at least 1.5 cm (0.6 inches) wide on the printed page. Larger codes scan faster and from greater distances. If the code will be scanned from a screen, 2 cm or larger is ideal.

Step 3 — Configure Field Options

Adjust the QR code field settings:

Step 4 — Preview and Generate

Use the row selector to preview QR codes with real data from any row. Scan the preview with your phone to verify the encoded content is correct.

When satisfied, generate your documents:

Preview tip

QR codes in the browser preview are rendered at screen resolution. The final generated PDFs contain high-resolution PNG QR codes for crisp printing. Always verify with a test scan on the generated output.


QR Code Use Cases

Certificate Verification

Add a verification QR code to certificates and diplomas. Each code links to a unique verification URL — anyone can scan to confirm the document is authentic. This is widely used for:

Event Check-In

Generate unique check-in QR codes for every attendee. Print on badges, tickets, or confirmation emails. Staff scan at the door for instant check-in. Benefits:

Embed payment QR codes on invoices. Each code contains a payment URL specific to that invoice. Recipients scan with their phone to pay instantly — no manual data entry, no copy-pasting amounts.

Product Identification

Add product QR codes to labels, tags, and spec sheets. Each code encodes a product ID, serial number, or URL linking to the product page.

Combine with barcodes

Use QR codes for consumer-facing interactions (scanning with a phone) and barcodes (Code 128, EAN-13) for internal scanning with laser scanners. Both can appear on the same template.

vCards and Contact Sharing

Encode vCard data (.vc3 format) as a QR code. When someone scans it, their phone prompts to save the contact. Use cases:

Tracking and Analytics

Embed unique tracking URLs as QR codes. Each recipient gets a different link, so you can track who engaged with the material. Use UTM parameters or unique identifiers to attribute scans to specific recipients.


Combining QR Codes with Other Features

QR Codes + Email Delivery

Generate PDFs with unique QR codes and send them as email attachments. Each recipient receives their own PDF with their own scannable code — perfect for event tickets, payment links, and verification certificates.

QR Codes + Password Protection

Encrypt QR-coded PDFs with per-recipient passwords. The recipient enters their password to open the PDF, then scans the QR code inside. Two layers of security for sensitive documents.

QR Codes + Image Fields

Add both QR codes and dynamic images on the same template. For example, an ID card with an employee photo (image field) and a check-in QR code — both personalized from spreadsheet data.

QR Codes + Custom Fonts

Use custom fonts for text fields alongside QR codes. Upload a corporate font for names and titles while embedding QR codes for machine-readable data. The combination produces professional, scannable documents.


Best Practices

  1. Always add a quiet zone — Set a margin of at least 4 modules (the smallest square unit in a QR code) around the code. Without a quiet zone, scanners may fail to read the code, especially when it’s printed near text or borders.

  2. Test with real scanning — Before running a full batch, generate a test PDF and scan the QR code with your phone. Verify the encoded content is correct and the code scans reliably at the intended size.

  3. Keep encoded data concise — QR codes with less data are easier to scan. Use short URLs (bit.ly, your own redirect service) instead of long query strings. Shorter content produces denser, more scannable codes.

  4. Size appropriately for the scanning distance — Event badges scanned from a phone at arm’s length need larger codes than product labels scanned with a dedicated scanner. Test at the actual distance your users will scan from.

  5. Use HTTPS URLs — If encoding URLs, always use HTTPS. Some phone cameras warn users before opening HTTP links, creating friction. HTTPS links open seamlessly.

  6. Verify data quality — Ensure the spreadsheet column for QR code data is complete and correct. Empty cells produce blank output; malformed URLs produce broken codes. Preview multiple rows before generating.


Get Started

Add dynamic QR codes to your merged PDFs in minutes. Upload a template, connect your spreadsheet, drag a column onto the page as a QR code field, and generate. Each PDF gets its own unique, scannable code.

Try Mergram free — create your first QR code mail merge today.

Step-by-step guide

  1. 1

    Upload Your PDF Template

    Upload a PDF file or import a Canva design. This is your base document where QR codes and other fields will be placed.

  2. 2

    Connect Your Spreadsheet

    Upload an Excel, CSV, or ODS file — or connect a Google Sheet. Ensure one column contains the data you want to encode as QR codes (URLs, IDs, text, etc.).

  3. 3

    Place QR Code Fields

    Drag the QR code data column from the sidebar onto your PDF. Set the render type to QR code. Position and resize the bounding box where you want the code to appear.

  4. 4

    Preview & Generate

    Preview with real data to verify the QR codes render correctly. Then generate — individual PDFs, a combined file, or send via email.

Frequently asked questions

How do I add QR codes to a merged PDF?
In the Mergram editor, drag a spreadsheet column onto your PDF page and set the render type to QR code. The cell value for each row becomes the QR code content. Position and resize the code anywhere on the page.
What data can I encode in a QR code?
Any text string from your spreadsheet: URLs, email addresses, phone numbers, product IDs, vCard data, plain text, or structured data like JSON. Each row can produce a different QR code.
Are the QR codes high resolution?
Yes. QR codes are generated as high-resolution PNG images and embedded in the PDF. They scan reliably from both printed and on-screen documents.
Can I use QR codes alongside text and barcode fields?
Absolutely. A single template can have any combination of text fields, QR codes, barcodes, and image fields. Each field type is configured independently.
What size should I make the QR code bounding box?
QR codes scale to cover the bounding box width and maintain their square aspect ratio. A minimum width of 1.5–2 cm (0.6–0.8 inches) is recommended for reliable scanning. Larger codes scan more easily.
Can I add a margin around the QR code?
Yes. Each QR code field has an optional margin/padding setting. Adding a quiet zone (the blank area around the code) improves scan reliability, especially when the code is printed near other content.

Ready to try it yourself?

Start merging PDFs in minutes — free account required, no credit card needed.

Related articles