Convert email message to PDF in Power Automate

This article demonstrates how to convert an email message to PDF with the help of Power Automate (Microsoft Flow).

We will take a hiring contract text as a body of our message:

Select fields

You can use different Power Automate (Microsoft Flow) connectors to receive messages. Some examples:

  • Office 365 Outlook


  • Gmail

In this example, we will convert email messages to PDF when they arrive in Office 365 Outlook inbox. Then we will store PDF files to a SharePoint document library. You can configure your Flow to store documents in any other location. For example, in Dropbox.

This is how complete flow looks:

Select fields

Here is step by step description for the flow.

Flow trigger to receive email messages

Firstly you need to add a trigger to start Flow when a new email arrives. We use Office 365 Outlook trigger called “When a new email arrives”.

Convert HTML to PDF

This is an action from Plumsail Documents connector.

Just put body variable from trigger output into “Source HTML” parameter of the action. You can use email subject as a file name. Then you can receive PDF file content as an output of the action.

You can find more information about this action here.

Create PDF file

Now you need to store PDF file somewhere. In our example, we use “Create file” action from SharePoint connector to store the PDF document into SharePoint document library. We use email subject as a file name.

Select fields

You can use any other connector to store PDF document into your system.