In this guide you’ll learn how to convert a text file to PDF using a Power Automate and Muhimbi PDF Converter. We support converting a wide variety of files to PDF using Power Automate (see full list of supported files).
Steps to convert your Text file to PDF using Power Automate:
- Create a flow in Power Automate
- Define your action (Convert to PDF)
- Create File (define were your file will be created)
- Publish your workflow
It’s also important to note that in this specific example we are converting a Text file to PDF in SharePoint using Power Automate. If preferred, you can easily save the converted PDF file to another destination like Dropbox, Google Drive, OneDrive, or any platform supported by Power Automate. You can also extend our example by adding additional automation like sending the converted PDF as email.
From a high-level perspective, the workflow will look as follows:
Create the following steps in Power Automate:
1: Create a new flow in Power Automate
Create a new Flow and use the SharePoint Online trigger ‘When a file is created’. Fill out the URL for the Site Address and select the relevant SharePoint folder.
2: Convert Text to PDF
Insert Muhimbi's ‘Convert document’ action and fill it out as per the screenshot displayed below. Naturally, you will need to substitute the Source file name and Source file content with suitable values.
3: Create a file
Insert a ‘Create File’ action to write the converted file back to SharePoint Online (or Dropbox, OneDrive, Google Drive, or send the PDF via email).
4: Publish the workflow
Publish the workflow and upload a text file in the specified document library. After a few seconds, the Flow will trigger and a PDF file will be generated.
Generate PDF Files from Text
When you upload a text file in the specified document library, you will observe that after a few seconds the Flow will trigger and a PDF file will be generated.