New: Markdown to PDF built for AI agents, PDF to E-Invoice for Factur-X/ZUGFeRD, and PDF to PDF/A for archive-ready PDF/A-3b.

Convert CSV/Excel to PDF using Power Automate Cloud

8 MIN READ

This tutorial shows how to convert a CSV file or an Excel worksheet to PDF, then save the generated file to SharePoint.

Use the official PDFco connector and connect with your PDF.co API key. The connector is Premium in Power Automate, so confirm that your account and environment allow its use.

Prepare the Input File

Create an Instant cloud flow, select Manually trigger a flow, and name it Convert Spreadsheet to PDF.

Start with a small input file. For the CSV example, save the following content as orders.csv:

Order,Customer,Total
ORD-101,Example Studio,120.00
ORD-102,Sample Workshop,85.50

Provide a download URL that PDF.co can retrieve. A SharePoint or OneDrive preview link requiring your browser login is not sufficient.

Follow the Power Automate file-source guide to prepare an accessible source. If your organization does not permit shareable links, use an approved file-upload method rather than changing access permissions for this example.

Configure the PDF Conversion

Add an action, search for PDFco, and choose the appropriate conversion.

For a CSV File

Select PDF from CSV and configure:

  • URL: The download URL for orders.csv.
  • Name: orders.pdf.
  • Pages: Leave blank to include all pages.
  • Async: Set to No for this small example.
  • Profiles: Leave blank unless additional settings are required.

For an Excel Worksheet

Select PDF From Spreadsheet and configure:

  • URL: The download URL for your XLS or XLSX workbook.
  • Worksheet Index: Enter 0 for the first worksheet or 1 for the second.
  • Name: worksheet.pdf.
  • Async: Set to No for a small test.
  • Profiles: Leave blank unless additional settings are required.

The worksheet index selects a sheet, not a PDF page. Although PDF from CSV also accepts XLS/XLSX files, PDF From Spreadsheet provides the explicit worksheet-selection field.

Before downloading the output, confirm that the conversion completed successfully and Error is false.

For longer conversions with Async enabled, pass Job Id to Background Jobs Check. Check again after a short delay while the status is working; proceed only on success, and stop on failed or aborted.

Save the PDF to SharePoint

Add an HTTP action:

  • Method: GET.
  • URI: Map the completed conversion’s URL output.

Next, add SharePoint’s Create file action:

  • Site Address: Select the destination SharePoint site.
  • Folder Path: Select the destination folder.
  • File Name: Enter orders.pdf or worksheet.pdf, matching your example.
  • File Content: Map the Body output from the HTTP action.

Use the downloaded file content—not the URL string—in File Content. Save the PDF before its temporary download link expires. For repeated runs, use unique filenames to avoid naming conflicts.

If you add an email notification, link to the saved SharePoint file.

Test and Review the Saved PDF

Save the flow and run a manual test. Open the PDF stored in SharePoint and compare it with the source.

  • CSV: Confirm that the header and both sample rows appear correctly.
  • Excel: Confirm that the intended worksheet was converted, then review column widths, number formatting, and page breaks.

If content is clipped or difficult to read, adjust the source workbook’s layout and run another test.

Your flow now converts the source file and stores the PDF itself, ready for sharing or further processing.

That’s how easy it is to convert a CSV file to PDF using the PDF.co Power Automate plugin.

Was this page helpful?

Related Tutorials

See Related Tutorials

Try it with your document.

Create an account, get an API key and test a request.

Get Started Free

© Copyright 2016-2026 Artifex Software, Inc d/b/a PDF.co — All Rights Reserved