---
title: "Power Automate generate PDF files | Nutrient"
canonical_url: "https://www.nutrient.io/guides/document-converter/power-automate/generate-pdf/"
md_url: "https://www.nutrient.io/guides/document-converter/power-automate/generate-pdf.md"
last_updated: "2026-05-21T20:35:00.945Z"
description: "In this guide, you’ll learn how to automatically generate a PDF using Power Automate. for Nutrient Document Converter SDK."
---

# Generate PDF Files Using Power Automate

In this guide, you’ll learn how to automatically generate a PDF using Power Automate.

This example automatically generates a PDF file when a new MS Word document is added to a OneDrive folder. Once the file has been generated in OneDrive, it’s then automatically added to a specified location within SharePoint.

It’s important to note that you aren’t limited to generating PDFs from MS Word documents, as Nutrient supports [a wide range of file types](https://www.nutrient.io/guides/document-converter/sharepoint/knowledge-base/what-file-formats-types-are-supported-for-conversion.md). You can also generate your PDF on another platform, like Dropbox, Google Drive, or any other platform supported by Power Automate. If desired, you can extend our example by adding additional automation, such as sending the generated PDF in an email.

### Prerequisites

Ensure the following prerequisites are in place:

- An Office 365 subscription with Power Automate and OneDrive for Business support.

- A full or free trial subscription to [Nutrient Document Converter for Power Automate](https://www.nutrient.io/low-code/integrations/power-automate).

- Appropriate privileges to create flows.

- Appropriate privileges in MS SharePoint Online and OneDrive for Business.

- Working knowledge of Microsoft Power Automate.

## The flow

This example takes you through generating a PDF when a file is created in OneDrive (Business) and then adding the generated file to SharePoint.

On a high level, the flow will look like what’s shown in the following image.![generate pdf flow](@/assets/guides/muhimbi/pdf-converter/power-automate/generate-pdf-1.jpg)

### Creating a new flow

Create a new flow and use the **When a file is created** OneDrive (Business) trigger. In the **Folder** field, select the OneDrive folder where the converted files will be uploaded.![create flow](@/assets/guides/muhimbi/pdf-converter/power-automate/generate-pdf-2.jpg)

### Converting the document

Insert Nutrient’s **Convert document** action. In the **Source file name** field, specify **File name**, which is the output of the **When a file is created** action. In the **Source file content** field, specify **File content**, which is the output of the **When a file is created** action. For the **Output format** field, specify **PDF**.![convert document](@/assets/guides/muhimbi/pdf-converter/power-automate/generate-pdf-3.jpg)

### Creating a file

Insert the SharePoint **Create file** action to write the generated file to a SharePoint Online location. Fill out the fields as follows:

- **Site Address** — Select the location of the MS SharePoint site where you want to store the converted PDF document.

- **Folder Path** — Select the folder where you want the generated PDF file to be saved.

- **File Name** — Add **Base file name**, which is the output of Nutrient’s **Convert document** action. Ensure you add the `.pdf` extension to the file name.

- **File Content** — Add **Processed file content**, which is the output of Muhimbi’s **Convert document** action.![create file action](@/assets/guides/muhimbi/pdf-converter/power-automate/generate-pdf-4.jpg)

Publish the workflow and upload a new item, such as an MS Word document, to the OneDrive (Business) location.![publish workflow](@/assets/guides/muhimbi/pdf-converter/power-automate/generate-pdf-5.jpg)

After a few seconds, the flow will trigger and a PDF file will be generated and uploaded to the MS SharePoint location.![sharepoint files](@/assets/guides/muhimbi/pdf-converter/power-automate/generate-pdf-6.jpg)
---

## Related pages

- [Compress PDFs Using Power Automate](/guides/document-converter/power-automate/compress-pdf.md)
- [Create a Table of Contents in PDF Using Power Automate](/guides/document-converter/power-automate/create-table-of-contents.md)
- [Edit PDFs in Power Automate](/guides/document-converter/power-automate/edit-pdf.md)
- [Export Power BI reports to PDF](/guides/document-converter/power-automate/export-to-pdf.md)
- [Document Converter for Power Automate](/guides/document-converter/power-automate.md)
- [Print to PDF using Power Automate](/guides/document-converter/power-automate/print-to-pdf.md)
- [Split PDFs with Power Automate](/guides/document-converter/power-automate/split-pdf.md)

