Convert TXT files to PDF using Power Automate
In this guide, you’ll learn how to convert a text file to PDF using a Power Automate flow and [Muhimbi Document Converter][]. This example shows how to convert a text file to a PDF, but you can switch the input file to another file type. You can see the file formats we support here.
Steps to convert your text file to PDF using Power Automate:
-
Create a flow in Power Automate
-
Define your action
-
Create a file
-
Publish your workflow
This example uses Power Automate to convert a text file to PDF in SharePoint. However, you can save your text file to Dropbox, Google Drive, OneDrive, or any platform supported by Power Automate. You can also extend our example by adding additional automation, such as sending the converted PDF as an email.
1: Creating a new flow in Power Automate
Create a new flow and use the When a file is created trigger. Fill out the URL for the site address and select the relevant SharePoint library from the dropdown menu.
2: Converting text to PDF
Insert Muhimbi’s Convert document action and fill it out as shown in the screenshot displayed below. You’ll need to substitute the Source file name and Source file content fields with suitable values.
3: Creating a file
Insert a Create file action to write the converted file back to SharePoint Online or your desired destination.
4: Publishing 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.
Additional resources
For more information, refer to the following resources.
Power Automate templates
To accelerate your workflow, we’ve curated a selection of ready-to-use templates within Power Automate. Access these resources by logging in to your Power Automate account and searching for the templates listed below by their precise names:
-
Generate PDFs from Microsoft Forms and Send via Email
-
Convert Email to PDF and archive in DropBox
-
Send a PDF version by email when a SharePoint document is added
-
Automatically convert newly added OneDrive files to PDF
-
Export a Power Bi report to PDF and send it by email
-
Archive email attachments in PDF format to OneDrive
-
Convert Any SharePoint File to PDF and Add a Text Watermark
-
Convert InfoPath Forms to PDF
-
Send updates from the Power Automate blog as a PDF by email
-
Convert Files to Text Searchable PDF with OCR
