Productivity

How to Convert Email Attachments to PDF Automatically

Written by FlexFiles TeamNovember 24, 2026

Clients send Word documents. Suppliers send photos of receipts. Your archive, your accounting software or the person you forward them to wants PDFs. Instead of downloading, converting and re-attaching each file by hand, you can let a Zap do it: when an email with an attachment arrives, FlexFiles converts the attachment to PDF and Zapier sends or saves the result.

This guide walks through the setup with Gmail, then shows variations for images, large files and Outlook.

What you need

  • A FlexFiles Pro or Business plan. Both include API access, which the Zapier integration uses.
  • A FlexFiles API key from Account → API Keys.
  • The FlexFiles app in your Zapier account. It isn't in Zapier's app directory yet, so add it with our invite link.
  • A Zapier account. This Zap has more than two steps, which on Zapier needs a paid Zapier plan or trial.

Step 1: Start the Zap when an attachment arrives

In Zapier, create a Zap and choose Gmail as the trigger app with the New Attachment event. Connect your Gmail account and, if you like, limit the trigger to a label or a search such as has:attachment from:billing@example.com, so only the emails you care about start the Zap.

Test the trigger so Zapier pulls in a sample email with an attachment.

Step 2: Only continue for Word files

Add a Filter by Zapier step so the Zap only carries on for the file types you want to convert. Set it to continue only if the attachment's file name ends with .docx (add another condition for .doc if you receive older files).

This keeps the Zap from spending conversions on attachments that are already PDFs.

Step 3: Convert the attachment with FlexFiles

Add a FlexFiles step and choose the Convert File action.

  1. Connect your FlexFiles account with your API key.
  2. Set Tool to Word to PDF.
  3. In File(s), map the attachment from the Gmail trigger.
  4. Test the step.

The step waits for FlexFiles to finish and passes on the converted PDF, its file name and a download link that stays valid for an hour.

Step 4: Send or save the PDF

Add the step that does something with the PDF, for example:

  • Gmail → Send Email, with the converted file from the FlexFiles step mapped as the attachment, to forward PDFs to your accountant.
  • An upload step in the storage or document app you already use, mapping the converted file as the file to upload.

Map the converted file rather than the download link, because the link expires after an hour.

Turn the Zap on. From now on, every matching Word attachment arrives where you need it as a PDF.

Variations

Photos and scans to PDF. Filter for .jpg and .png instead and set the tool to Images to PDF. To combine several photos from one email into a single PDF, start the Zap with Gmail's New Email trigger instead, which provides all of an email's attachments at once, and map them into File(s). Images to PDF accepts up to 10 images per conversion.

Shrink big PDFs. Filter for .pdf, use Compress PDF, and forward the smaller file. Useful when attachments are too large for the next system to accept.

Make scans searchable. Use OCR PDF on scanned PDF attachments so their text can be searched and copied later.

Outlook instead of Gmail. Use Microsoft Outlook with the New Email trigger, then follow the same steps from the filter onwards.

Limits worth knowing

  • Quota. Each conversion counts against your plan's daily conversions: 120 on Pro and 400 on Business. The filter in step 2 helps you only convert what you need.
  • File size. Attachments up to 60 MB pass through Zapier. Bigger files are sent as links, and FlexFiles has 15 seconds to download them. Your plan's per-file limit (2 GB on Pro, 5 GB on Business) and Zapier's own file limits also apply.
  • Errors. If an attachment can't be converted, for example a file type the tool doesn't accept, the FlexFiles step stops with an error message you can see in your Zap history.

FAQ

Can I convert several attachments from one email?

Yes. With the New Attachment trigger, each attachment runs through the Zap on its own. To combine up to 10 images into one PDF, use the New Email trigger and the Images to PDF tool as described above.

What about password-protected PDFs?

To open a password-protected PDF attachment, use the Unlock PDF tool with its password. To add a password to the converted file instead, add a Protect PDF step after the conversion.

Do I need to keep FlexFiles open?

No. The conversion runs on FlexFiles' servers whenever the Zap runs.

Want to see everything the integration can do? Read how to automate PDF conversions with Zapier and the FlexFiles + Zapier documentation, or add FlexFiles to your Zapier account to get started.