In this Power Automate tutorial, we will discuss how to convert word to pdf using Power Automate or Microsoft Flow.
So, we will create a Flow that will convert the word document to pdf without a premium connector, using Microsoft Flow or Power Automate.
How to convert word to pdf using Power Automate or Microsoft Flow
Here we will see how to convert word document to pdf using Power Automate or Microsoft Flow.
Basically, we have 2 libraries, one library is Word library where we will upload a word document, and by using Flow we will convert that word to Pdf and store it into a Second library called pdf.
SharePoint Pdf Library.
Read Power Automate SharePoint Get Items Filter Query
Power Automate Convert Word to PDF – Steps
Here we will see the steps to convert Word to pdf with no premium connector using Power Automate.
Step 1: Create a Flow in Power Automate
To create a Flow, Login to Power Automate, then click on Create and select Automated Cloud Flow.
Next, provide the Flow name and select the trigger When a File is created(properties only) action. Then click on Create.
Step 2: When a file is created
In this step provide the site address and Library name where you will create a word file in SharePoint Online.
Step 3: Get the File content
Now in this step, we will get the content of the word file, so click on the Next step and select Get File content action. Then provide the Site address and File identifier from the dynamic content.
Step 4: Create File in OneDrive
Now we will take the help of OneDrive to convert the word file to pdf, so first, we will create a file in OneDrive, click on the Next step and select Create File action. Then provide the Folder path, Filename (File name with extension), and File content from the dynamic content.
Step 5: Convert Word File to pdf
Now in this step, we will convert the above word file pdf, so click on the Next step and select Convert File -OneDrive for Business action. Then provide the File id from the dynamic content and in Target type select pdf from the dropdown.
Step 6: Create pdf file in SharePoint library
Now in this step, we will create a file in the pdf library, so click on the Next step and select Create file – SharePoint action. Then provide the site address, folder path, file name, and file content from the dynamic content.
Step 7: Delete the temporary file
Now we will delete the temporary file, we have created in OneDrive business, so click on the Next step and select Delete File action, then provide the File id from the dynamic content.
Once the Flow is ready, we will move forward to run the Flow.
Step 8: Run the Flow
Now click on Save and run the Flow create a word file in the Word Document library in SharePoint.
Once you create a word file, you can see flow ran successfully.
Now you can see a pdf file gets created in the SharePoint Pdf library,
This is how we can convert word to pdf with no premium connector using Power Automate.
In this Power Automate tutorial, we learn how to convert word to pdf using Power Automate or Microsoft Flow. And you can download the whole flow from here
Related Power Automate tutorials:
- Power Apps Navigate Function + 16 Examples
- Power Automate remove characters from a string
- Power Automate send email to SharePoint group
- Microsoft flow send email based on create date
- Power Automate or Microsoft Flow check day of week
- How to update SharePoint Multiselect column in Power Automate
After working for more than 15 years in Microsoft technologies like SharePoint, Office 365, and Power Platform (Power Apps, Power Automate, and Power BI), I thought will share my SharePoint expertise knowledge with the world. Our audiences are from the United States, Canada, the United Kingdom, Australia, New Zealand, etc. For my expertise knowledge and SharePoint tutorials, Microsoft has been awarded a Microsoft SharePoint MVP (9 times). I have also worked in companies like HP, TCS, KPIT, etc.
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.
Hi Bijay,
Ignore my comment as I figured it ou.
Cheers
John.
Hi Bijay,
Great Content! Is it possible to convert Images to PDF without using any Premium or 3rd Party connectors.
Is it possible to create the PDF in the original sharepoint folder?
Awesome post – exactly what I was looking for. Thanks for taking the time to write this up
Thanks for this helpful tutorial!
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.