How to Convert Word Files to PDF Using Power Automate? [Without Using Premium Connector]

While working on a Power Automate document management flow, I got a requirement to convert Word to PDF using Power Automate. The requirement is that when a user uploads a Word file to a SharePoint document library, that specific Word file should be converted into a PDF and stored in a SharePoint document library.

In this tutorial, I will discuss how to convert Word files to PDF using Power Automate. [without using a premium connector]

Also, I will show another requirement in Power Automate: When I receive Word documents from one of my clients as email attachments, I need to convert them to PDF before saving them to a SharePoint document library.

Convert Word Files to PDF Using Power Automate

We have two SharePoint document libraries: One library is a Word Document library, where we upload a Word document, and another is a PDF Document library, where we convert that Word document to PDF and store it.

SharePoint WordDocument Library:

Convert Word to PDF using Power Automate

SharePoint PDFDocument Library:

How to Convert Word to PDF using Power Automate

Steps to Convert Word to PDF in Power Automate

Here, we will see the steps to convert Word to PDF without using a premium connector in Power Automate.

1. Open the Power Automate home page, click + Create, select the Automated Cloud Flow, enter the flow name, and choose the trigger’s flow When a File is created(properties only).

How to Convert Word to PDF using Automate Flow

2. Now, provide the Site Address and Library Name where you will create a Word file in SharePoint Online.

convert word to pdf power automate

3. Next, we need to get the file content of the Word file, so I will add the Get File content action. Then, provide the Site Address and File Identifier from the dynamic content.

power automate convert word to pdf without premium

4. Now, I want to add a condition that checks whether a file created in the SharePoint library is a Word document or not. So, I will add a Control Condition Action.

Then, Set the properties such as File name with extension ends with .docx, as in the screenshot below.

convert word to pdf sharepoint power automate

5. Now, we will use OneDrive to convert the Word file to PDF. First, we will create a file in OneDrive, So select the Create File action inside the True section. Then, provide the Folder Path, File Name (File name with extension), and File Content from the dynamic content.

power automate convert word to pdf

6. Now, we will convert the above Word file to PDF, so select the Convert File (OneDrive for Business) action. Then, provide the File as Id from the dynamic content and in Target type select PDF from the dropdown.

power automate word to pdf

7. Next, we will create a PDF file in the SharePoint library from that Convert file content, so add the Create file action from the SharePoint connector. Then, provide the Site Address, Folder Path, File Name, and File Content from the dynamic content.

word to pdf power automate

8. Now, we will delete the temporary file that we created in the OneDrive business, so I added a Delete File action and provided the File Id from the dynamic content.

convert word document to pdf power automate

Once the Flow is ready, we will move forward to run the Flow.

Convert Word to PDF Flow Run in Power Automate

Now click on Save and run the Flow. Then, go to the SharePoint Document library and create a Word file.

power automate convert docx to pdf

Once you create a Word file, you can see that the flow ran successfully.

power automate create pdf from word

Now, you can see a PDF file gets created in the SharePoint PDF library.

power automate convert word to pdf sharepoint

This is how we can convert Word to PDF with no premium connector using Power Automate.

Convert Word Files to PDF using Power Automate [Word file is an Email Attachments]

I hope you know the requirements, as I explained in the introduction. Before I start, I will create a SharePoint document library that stores our PDF files.

convert word to pdf in power automate

Now follow the below steps:

Open the Power Automate home page, click + Create, select the Automated Cloud Flow, enter the flow name, and choose the trigger’s flow When a new email arrives (V3)(Outlook connector).

power automate convert to pdf

Then, Set the filter conditions (e.g., emails from a specific sender or with specific keywords). here I am, taking emails from a specific sender. To do this, select the From Advanced parameters drop-down. In the Form, give a specific sender’s email address.

convert file power automate

Next, I need to get the Word document from the attachments. So, Add the Get Attachment (V2) action(Outlook connector). Then, add the Message Id and Attachment Id from the trigger dynamic content.

Then, you see one for each action and add it to all attachments in the email.

power automate convert word document to pdf

Now, I want to add a condition that checks whether a file created in the SharePoint library is a Word document or not. So, I will add a Control Condition Action.

Then, Set the properties such as Name ends with .docx, as in the screenshot below.

convert file to pdf power automate

Now, we will use OneDrive to convert the Word file to PDF. First, we will create a file in OneDrive, So select the Create File action inside the True section. Then, provide the Folder Path, File Name (Name), and File Content(Content Bytes) from the dynamic content.

How to power automate convert word to PDF

Then follow the same steps as above (6, 7, 8). The flow should look like this:

how to convert word file to pdf using power automate

After that, save and Run the flow, and then you will see when the new email arrives from the sender.

how to convert word document to pdf in power automate

once you get the email from the specific sender, you can see that the flow ran successfully.

power automate convert pdf to word free

Then, you can see one PDF file created in the SharePoint document library.

Convert Word Files to PDF using Power Automate[Word file is an Email Attachments]

In this Power Automate tutorial, we learn how to convert Word to PDF using Power Automate.

Related Power Automate tutorials:

  • Hi Bijay,

    Great article and easy to follow. Is it possible to delete the original Word Document that has been converted at the end of the flow?

    John.

  • I can not seem to get the ‘file content’ to lock in. Power Automate continues to change it to ‘body’ and the flow fails after creating the docx in OneDrive. Any suggestions?

  • The solution file is invalid. The compressed file must contain the following files at its root: solution.xml, customizations.xml, and [Content_Types].xml. Customization files exported from previous versions of Microsoft Dynamics 365 are not supported.

  • >

    Build a High-Performance Project Management Site in SharePoint Online

    User registration Power Apps canvas app

    DOWNLOAD USER REGISTRATION POWER APPS CANVAS APP

    Download a fully functional Power Apps Canvas App (with Power Automate): User Registration App

    Power Platform Tutorial FREE PDF Download

    FREE Power Platform Tutorial PDF

    Download 135 Pages FREE PDF on Microsoft Power Platform Tutorial. Learn Now…