How to Compress PDF Files using Zapier and PDF.co Plugin with Custom API Call Action

You can easily compress PDF files using the PDF.co plugin for Zapier. PDF optimization is not listed as a separate action for PDF.co but with the Custom API Call action, you can access any API endpoint. This tutorial will demonstrate how to call pdf compression endpoint from PDF.co plugin for Zapier.

Step by step guide

1. In this tutorial we will use a 5-page PDF file that contains text and images with 1,039KB file size.

 

PDF Compressor API Sample PDF
Screenshot of PDF Compressor Source File

 

PDF Compressor Source File's File Size
Screenshot of the Source File’s File Size

 

2. To get started, let’s select PDF.co as the App and the Custom API Call as the Action Event.

 

 

3. Next, let’s configure our Custom API Call.

  • Kindly select the v1/pdf/optimize in the API Endpoint field.
  • In the URL field, enter the file source link. It can be a URL, a link, a filetoken:// link or Google Drive, Dropbox, or another cloud storage link.
  • In the Run As Async Job field, select True. The Async mode is recommended to get a higher performance for this Custom API Call.

 

 

4. Finally, let’s test the Custom API Call action.
 

 
5. Kindly grab the url from the output as the link for the next step in your Zap. This link will open the output file generated.

6. Here’s the file size difference after the file compression.
 
PDF Compression API File Size Difference
Screenshot of Original And Result PDF File Size Difference