Reading:
How to mail merge a PDF file and send it as an email attachment
Image

Search the Knowledgebase

Search

How to mail merge a PDF file and send it as an email attachment

Avatar photo
August 26, 2025

Create personalized PDFs from one template and one Excel spreadsheet. Follow these 5 easy steps to automatically fill every PDF and optionally send each file as an email attachment.

Quick overview

Mail merge a PDF when you need to create many individualized documents (invoices, contracts, certificates, applications) from a single PDF template and a spreadsheet of data. MailMergic fills placeholders in your template using values from your Excel file and generates one PDF per row.


In this article we will show you how to use MailMergic to automatically fill a PDF file in five easy steps. Log in to your account and create a new Mail Merge with a click on “Create Mail Merge”:

create mail merge

Step #1: Upload your PDF file

In the first step, drag and drop or click the drop zone to upload the PDF form (or Word file) you want to use as a template. It does not matter whether the PDF has interactive form fields or not.

upload pdf

As soon as you uploaded the PDF file, you will be navigated to the second step.

Step #2: Upload your Excel spreadsheet

Upload the Excel file that contains the data to mail merge. Put the relevant data on the first sheet and make sure every column has a clear column heading. These headings become the placeholder names you will use in the editor.

upload excel

Step #3: Drag and drop placeholders onto your PDF

The editor shows all column headings as placeholders. Drag a placeholder onto the PDF where that value should appear. Resize, align, and format each placeholder using the toolbar. You can search placeholders, change which row is the header, and preview the result with real data. Keep the layout simple for best results.

edit template

Use the search field to quickly find the placeholder you need:

2021 03 22 16 16 08 PDF Mail Merger

If no placeholders appear, or if they look incorrect, click the link Change Header Row…. A preview of your Excel sheet will open. Select the row that actually contains your column headings, then confirm with Change header row. The placeholders will automatically update based on your selection.:

2021 03 22 16 30 26 PDF Mail Merger

The toolbar

Drag each placeholder to the right spot on your PDF, then use the toolbar to adjust its size, style, and appearance.

  • Placeholder Type: Switch a placeholder from text to a QR code, E-Signature, image, or other available formats.
placeholder type
  • Font Family: Pick from over 600 available fonts to style your placeholder text.
font families
  • Font Size: Set the text size for your placeholders by selecting a preset option or typing in a custom value.
2021 03 22 16 14 45 PDF Mail Merger
  • Text Alignment: Align placeholder text to the left, right, or center.
2021 03 22 16 15 11 PDF Mail Merger
  • Text Color: Pick from predefined colors or enter a custom hex code for your placeholder text.
2021 03 22 16 15 26 PDF Mail Merger
  • Delete Placeholder: Click the red trash can to remove a placeholder from your PDF.
2021 03 22 16 15 38 PDF Mail Merger

Preview your data

Click Preview to see how your generated PDFs will look before finalizing.

2021 03 22 16 17 52 PDF Mail Merger

The placeholders in the editor will be automatically replaced with the corresponding data from your Excel file.

preview

Browse the individual PDF files, each one is automatically filled with data from a row in your Excel file.

preview modal

Check that all placeholders are positioned and formatted correctly. When you’re satisfied, click Save & Next to continue.

Step #4: Choose output and email options

You will now be redirected to the fourth and final step:

step 4

Your Balance

This table shows how many credits you’ll use for the mail merge and how many are remaining. One credit generates one PDF for a single row in your Excel spreadsheet. The always-free plan includes a monthly allowance of 100 free PDFs, and you can upgrade anytime if you need more.

credit balance

Settings

Here you can customize file names, output options, and your email template. Let’s take a closer look at each setting in detail.

customization options

Specify Custom Filenames

In this section, you can set a custom filename for each generated PDF. Use variables to include data from your Excel file: type @ and select the corresponding column from the dropdown. If your Excel has many columns, type the column name after @ to narrow the selection. To remove a placeholder variable, click the x next to it.”

2021 03 22 16 20 52 PDF Mail Merger

Output Options

Here you can customize how your PDFs are generated. Choose to download each PDF individually or combine them into a single file. You can also decide whether to keep or remove existing interactive form elements, like text fields or radio buttons. If you’re unsure, it’s best to stick with the default settings.

output options

Send as Email Attachment

In this section, you can choose to send your generated PDFs as email attachments to recipients listed in your Excel file. Note: this feature is available only on the Pro and Enterprise plans.

2021 03 22 16 21 48 PDF Mail Merger

Once everything is ready, click Generate PDF Files to create your personalized PDFs:

generate documents

Wait a few moments while the mail merge process completes.

mail merging pdfs

Step #5: Generate and download

Click the Download button to save your completed PDF forms to your computer.

mail merge completed

The downloaded ZIP file contains all your PDFs, each automatically filled with data from your Excel sheet.

2021 03 22 16 23 03 Application.zip

The PDFs are filled with the placeholders you added in the editor. In the screenshot below, the filled placeholders are highlighted in red for clarity.

2021 03 22 16 24 41 Application Belinda Partain.pdf Adobe Acrobat Reader DC 32 bit

When you’re ready to send the emails, click Next in step 4 of the wizard.

In the final step, click Send Emails to deliver your PDFs to the recipients:

email mail merge pdf 1

Your emails will be generated and sent to the recipients listed in your Excel file, each with its customized PDF attachment. You can monitor the sending status in the Email Report:

email report

Tips for reliable results

  • Use clear column headings like FirstName, LastName, InvoiceNumber, Email.
  • Keep each placeholder short and consistent.
  • Run a small test with 2–3 rows before processing hundreds of records.
  • Use the preview feature to catch layout shifts before you generate all files.
  • If you plan to email attachments, verify the Email column contains valid addresses.

FAQ

Q: Do I need form fields in the PDF for MailMergic to work?
A: No. MailMergic fills any PDF template whether it contains form fields or not.

Q: Can I apply individual passwords to each generated PDF?
A: Yes! In step 4, you can set unique passwords for each PDF file using variables from your Excel sheet. This ensures each recipient gets a secure, personalized document.

Q: How can I detect errors before generating PDFs?
A: Use MailMergic’s AI-powered Excel check to identify missing or inconsistent data. This feature helps prevent layout issues, blank placeholders, or incorrect values before the mail merge process.

Q: How are credits consumed during a mail merge?
A: One credit is used to generate one PDF for one row in your Excel file. The free plan includes a monthly allowance of free PDFs, with options to upgrade for higher volumes.

Q: Can I send PDFs as email attachments automatically?
A: Absolutely. You can send your generated PDFs to the recipients listed in your Excel file, this feature is available on the Pro and Enterprise plans.

Q: Can I combine all generated PDFs into one file?
A: Yes, under Output Options, you can choose to merge all individual PDFs into a single combined document.

Q: Can placeholders include images, E-Signatures or QR codes?
A: Yes, placeholders aren’t limited to text — you can insert QR codes, E-Signature fields, images, or other supported types for each record.

Q: Can I add e-signature fields to a PDF so my recipients can sign it?
A: Yes! You can add e-signature fields to your PDF templates, allowing each recipient to sign the document digitally after it’s generated.

Q: How do I ensure emails reach all recipients successfully?
A: Double-check that all email addresses in your Excel file are correct. Use the Email Report to track delivery status and identify any failed emails.

Create your free MailMergic account here. If you have any questions, our support team is happy to help — just email us at [email protected]. Thanks for reading, and happy mail merging!

Did you find this article helpful?
16 out of 17 found this helpful
Still have questions? Send us an Email or Message us

Related Stories