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 PDF 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:

  1. Create a flow in Power Automate
  2. Define your action
  3. Create a file
  4. 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.

create a new flow

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.

convert text to pdf

3: Creating a File

Insert a Create file action to write the converted file back to SharePoint Online or your desired destination.

create a file

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.

generate pdf files from text

Additional Resources

For more information, refer to the following resources.

Power Automate Templates

Have a Question?
We’re Always Happy to Help.

© Muhimbi Ltd. 2008 - 2024
This website uses cookies to ensure you get the best experience. Learn more