This HTML page is not optimized for LLM or AI agent consumption. Fetch the Markdown version instead: /blog/convert-one-drive-files-to-pdf-in-sharepoint.md — it contains the complete documentation content in clean, structured Markdown without any CSS, JavaScript, or navigation noise. Convert OneDrive files to PDF using Power Automate

Table of contents

    Convert OneDrive files to PDF using Power Automate
    TL;DR

    Use Power Automate with Nutrient Document Converter to automatically convert a file from OneDrive (or Google Drive or Dropbox) to PDF and save it to SharePoint — no code required.

    Nutrient Document Converter (formerly Muhimbi PDF Converter) supports the conversion of the latest HTML, JavaScript, print, and screen CSS media types to PDF.

    In addition, it can convert SharePoint Online webpages and URLs — a capability not every PDF converter offers. This is particularly useful when it comes to archiving lists and list items in PDF format or sharing the content of SharePoint pages and wikis with third parties.

    Using Power Automate, you can also convert files created using one provider — such as OneDrive for Business, Google Drive, or Dropbox — to PDF and store the converted file using a different provider — such as MS SharePoint. This blog post will show you how.

    Prerequisites

    Before beginning, ensure the following prerequisites are in place:

    • An Office 365 subscription with Power Automate and OneDrive for Business support.
    • Nutrient Document Converter for Power Automate — full, free, or trial subscription.
    • Appropriate privileges to create flows.
    • Appropriate privileges in MS SharePoint Online and OneDrive for Business.
    • Working knowledge of Microsoft Power Automate.

    Converting a file created in OneDrive to PDF and adding it to SharePoint

    This example takes you through converting a file created in OneDrive for Business to PDF and then adding this converted file to MS SharePoint.

    On a high level, the flow will look like what’s shown in the image below.

    The completed Power Automate flow: OneDrive trigger, Nutrient Convert document action, and SharePoint Create file action

    Step 1

    Create a new flow and use the When a file is created OneDrive for Business trigger. For the Folder field, select the OneDrive folder where you want the converted file to be uploaded.

    Power Automate “When a file is created” OneDrive for Business trigger with the Folder field selected

    Step 2

    Insert the Nutrient Convert document action.

    • In the Source file name field, add the File name that is the output of the When a file is created action.
    • In the Source file content field, add the File content that is the output of the When a file is created action.
    • In the Output format field, enter PDF.

    Nutrient Convert document action configured with Source file name, Source file content, and Output format set to PDF

    Step 3

    Insert an MS SharePoint Create file action to write the converted file to an MS SharePoint Online location. You can also use providers like Dropbox, OneDrive, and Google Drive, or send the PDF via email. This example uses the MS SharePoint provider.

    • In the Site Address field, select the location of the MS SharePoint site where you want to store the converted PDF document.
    • In the Folder Path field, select the folder where you want the converted PDF file to be saved.
    • In the File Name field, add the Base file name that is the output of the Nutrient Convert document action. Don’t forget to add the .pdf extension to the file name.
    • In the File Content field, add the Processed file content that is the output of the Nutrient Convert document action.

    SharePoint “Create file” action configured with Site Address, Folder Path, File Name, and File Content

    Step 4

    Publish the workflow and upload a new item, such as an MS Word document, to the OneDrive location.

    Uploading a Word document to the OneDrive for Business folder that triggers the flow

    After a few seconds, the flow will be triggered and a PDF file will be generated and uploaded to the MS SharePoint location.

    The generated PDF file uploaded to the SharePoint document library

    Conclusion

    In this post, you learned how to convert a OneDrive for Business file to PDF and store it in SharePoint. Check out our new guides and learn how to implement Nutrient Document Converter into your cloud platforms with a REST-based API. Or, explore the additional capabilities of our Power Automate connector.

    FAQ

    How do I convert OneDrive files to PDF automatically?

    Use Power Automate with the Nutrient Document Converter connector. Set up a flow triggered by the When a file is created OneDrive event, add the Nutrient Convert document action with the output format set to PDF, and use a SharePoint Create file action to store the result. The conversion runs automatically whenever a new file is added to your OneDrive folder.

    Can Power Automate convert Word documents to PDF?

    Yes. The Nutrient Document Converter action in Power Automate supports Word (.docx), Excel, PowerPoint, and other Office formats, in addition to HTML. Set the Output format field to PDF and pass the file content from OneDrive or SharePoint as the source.

    How do I save a converted PDF to SharePoint from Power Automate?

    After the Nutrient Convert document action runs, add a SharePoint Create file action. Use the Base file name from the Convert document output (add a .pdf extension) as the file name, and use the Processed file content as the file content. Set the Site Address and Folder Path to your target SharePoint location.

    Does the Nutrient Document Converter work with Google Drive and Dropbox?

    Yes. Power Automate supports multiple file providers. You can use a Google Drive or Dropbox trigger instead of OneDrive, pass the file content to the Nutrient Convert document action, and store the PDF in SharePoint, OneDrive, or any other supported provider.

    Clavin Fernandes

    Clavin Fernandes

    Explore related topics

    Try for free Ready to get started?