In this guide you’ll learn how to print files to PDF using Power Automate. For this example you can setup a flow to automatically print a wide variety of file types to PDF (see file formats we support).
It’s also important to note that in this example we are using Power Automate to print a file to PDF in SharePoint. You can easily save your PDF file to another destination like Dropbox, Google Drive, OneDrive, or any platform supported by Power Automate.
From a high-level perspective, the workflow will look as follows:
Create the following steps in Power Automate:
1: Create a new flow
Create a new Flow and use the SharePoint Online trigger ‘When an item is created or modified’. Fill out the URL for the site collection and select the relevant SharePoint list from the dropdown menu.
2: Convert 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 file generated by Print to PDF back to SharePoint Online (or Dropbox, OneDrive, or Google Drive, or send the PDF via email).
4: Publish the workflow
Publish the workflow and create/update an MS SharePoint file in the specified library. After a few seconds, the Flow will trigger and a printed PDF file will be generated.