Optimize PDF size using Power Automate

Sometimes you need to reduce a PDF file size and it’s easy to do with Compress PDF document from Plumsail Documents package.

In this example, we will work with files from a SharePoint documents library and use the default SharePoint trigger and actions. You can use some other system. Power Automate (Microsoft Flow) has a lot of connectors for different systems. Here are just a few of them:

  • SharePoint

  • Box

  • OneDrive

  • Google Drive

  • Dropbox

  • SFTP

  • File System

You can use the pre-built Flow template or follow the steps outlined in the article to create your Flow from scratch.

Setting up the Flow

The plan is the following:

  • The flow will start with a SharePoint trigger When a file is created or modified in a folder

When a file is created or modified in a folder trigger Compress PDF document action
  • And save the result to a SharePoint folder


Please don’t forget to specify the .pdf extension.

Create compressed PDF

This is the flow

Compress PDF flow

We showed one simple example where you can use Compress PDF document action. The same action could be used to compress many PDF files in one flow. You can get all files from one folder and compress them in a loop.

Ready-to-use Flow template

We have simplified the process of Flow configuration for you. Below is a clickable widget of the template that you can use: