power-automate

Integrating File Sources with PDF.co#

Integrating SharePoint, OneDrive, and other storage platforms into your Power Automate workflows with PDF.co can streamline document processing. This guide provides detailed steps for linking these sources and efficiently managing documents with PDF.co in Power Automate.

URL Accessibility for PDF.co#

To integrate files from SharePoint, OneDrive, and similar services with PDF.co, URLs must be accessible. Power Automate’s file-sharing links are recommended, as they are PDF.co-compatible. For direct URLs outside Power Automate, ensure public accessibility so PDF.co can access files without restrictions.

Integrating SharePoint Files with PDF.co in Power Automate#

You can automate document processing by generating a direct link for SharePoint files, enabling PDF.co to process them and save outputs back to SharePoint.

Steps to Generate the Direct Download Link:

  1. Add the “Create sharing link for a file or folder” Action

    • In Power Automate, add SharePoint’s “Create sharing link for a file or folder” action to create a shareable link that can be adjusted for direct access.

    • Site Address: Select your SharePoint site.

    • Library Name: Choose the library containing your file.

    • Item Id: Specify the file you want to share.

    For more information, see Microsoft Docs on creating sharing links.

  2. Modify the Link for PDF.co Compatibility

    • Append ?download=1 to convert it into a direct download link compatible with PDF.co.

    Example:

    Original Link:

    https://yourcompany.sharepoint.com/:b:/s/SharedDocuments/Ed1...4ig
    

    Modified Link:

    https://yourcompany.sharepoint.com/:b:/s/SharedDocuments/Ed1...4ig?download=1
    
  3. Troubleshooting:

    • Ensure the sharing settings allow public access.

    • Test the link in a browser to confirm it downloads the file directly.

    • Double-check permissions if PDF.co cannot access the file.

Storing PDF.co Output to SharePoint#

After processing files with PDF.co, the output can be stored in SharePoint for easy access and further use.

Steps to Save PDF.co Output:

  1. Retrieve PDF.co Output Using the HTTP Action

    • Add an HTTP action to download the processed file from PDF.co.

    • Method: Set to GET.

    • URI: Enter the Output URL provided by PDF.co after processing.

    • This action will fetch the processed file content for saving in SharePoint.

  2. Create a File in SharePoint

    • Add the “Create file” action in SharePoint to store the retrieved file.

    • Site Address: Choose your SharePoint site.

    • Folder Path: Choose the destination folder within your document library.

    • File Name: Assign a name to the file, including the extension (e.g., ProcessedFile.pdf).

    • File Content: Use the Body output from the HTTP action.

    Additional guidance is available in Microsoft Docs on creating files.

By following these steps, you can fully integrate SharePoint files with PDF.co in Power Automate, streamlining your document processes for improved productivity.

Additional Resources: