---
title: "Power Automate convert TXT files to PDF | Nutrient"
canonical_url: "https://www.nutrient.io/guides/document-converter/power-automate/conversion/text-to-pdf/"
md_url: "https://www.nutrient.io/guides/document-converter/power-automate/conversion/text-to-pdf.md"
last_updated: "2026-05-20T19:49:34.747Z"
description: "In this guide, you’ll learn how to convert a text file to PDF using a Power Automate flow and Nutrient Document Converter."
---

# 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 [Nutrient Document Converter](https://www.nutrient.io/low-code/try/?product=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](https://www.nutrient.io/guides/document-converter/sharepoint/knowledge-base/what-file-formats-types-are-supported-for-conversion.md).

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](@/assets/guides/muhimbi/pdf-converter/power-automate/text-to-pdf-1.jpg)

## 2: Converting text to PDF

Insert Nutrient’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](@/assets/guides/muhimbi/pdf-converter/power-automate/text-to-pdf-2.jpg)

## 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](@/assets/guides/muhimbi/pdf-converter/power-automate/text-to-pdf-3.jpg)

## 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](@/assets/guides/muhimbi/pdf-converter/power-automate/text-to-pdf-4.jpg)

## 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](https://make.powerautomate.com/environments/Default-bfb30d1e-c808-43d2-bc0d-594fc841addf/templates) 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
---

## Related pages

- [Power BI automated export to PDF using Power Automate](/guides/document-converter/power-automate/conversion/bi-reports-to-pdf.md)
- [Convert to PDF using Power Automate](/guides/document-converter/power-automate/conversion/convert-to-pdf.md)
- [Convert CAD/DWG to PDF using Power Automate](/guides/document-converter/power-automate/conversion/cad-to-pdf.md)
- [Convert email to PDF using Power Automate](/guides/document-converter/power-automate/conversion/email-to-pdf.md)
- [Convert CSV files to Excel with Power Automate](/guides/document-converter/power-automate/conversion/csv-to-excel.md)
- [Convert email attachments to PDF using Power Automate](/guides/document-converter/power-automate/conversion/email-with-attachments-to-pdf.md)
- [Convert Excel files to CSV with Power Automate](/guides/document-converter/power-automate/conversion/excel-to-csv.md)
- [Convert form to email using Power Automate](/guides/document-converter/power-automate/conversion/form-to-email.md)
- [Convert Excel to PDF using Power Automate](/guides/document-converter/power-automate/conversion/excel-to-pdf.md)
- [Convert images to PDF in Power Automate](/guides/document-converter/power-automate/conversion/image-to-pdf.md)
- [Convert HTML to PDF using Power Automate](/guides/document-converter/power-automate/conversion/html-to-pdf.md)
- [Convert documents using Power Automate](/guides/document-converter/power-automate/conversion.md)
- [Convert InfoPath to Excel](/guides/document-converter/power-automate/conversion/infopath-to-excel.md)
- [Convert InfoPath forms to PDF](/guides/document-converter/power-automate/conversion/infopath-to-pdf.md)
- [Convert InfoPath forms to Word documents](/guides/document-converter/power-automate/conversion/infopath-to-word.md)
- [Transform Microsoft Forms into Word documents](/guides/document-converter/power-automate/conversion/ms-form-to-word.md)
- [Convert Nintex forms to PDF with Power Automate](/guides/document-converter/power-automate/conversion/nintex-form-to-pdf.md)
- [Convert Microsoft Forms to PDF](/guides/document-converter/power-automate/conversion/ms-form-to-pdf.md)
- [Convert PowerPoint to PDF using Power Automate](/guides/document-converter/power-automate/conversion/ppt-to-pdf.md)
- [Convert SharePoint lists to PDF Using Power Automate](/guides/document-converter/power-automate/conversion/sharepoint-list-to-pdf.md)
- [Convert SharePoint pages to PDF using Power Automate](/guides/document-converter/power-automate/conversion/sharepoint-page-to-pdf.md)
- [Convert SharePoint files to PDF using Power Automate](/guides/document-converter/power-automate/conversion/sharepoint-to-pdf.md)
- [Convert Visio to PDF Using Power Automate](/guides/document-converter/power-automate/conversion/visio-to-pdf.md)
- [Convert SharePoint wiki files to PDF using Power Automate](/guides/document-converter/power-automate/conversion/wiki-to-pdf.md)
- [Convert Word to PDF with Power Automate](/guides/document-converter/power-automate/conversion/word-to-pdf.md)
- [Convert XLS to XLSX using Power Automate](/guides/document-converter/power-automate/conversion/xls-to-xlsx.md)

