In this tutorial, we will show you how to delete empty pages using PDF.co and Zapier.
- Create a Zap
- Google Drive App
- Setup Trigger
- Test Trigger
- Add PDF.co App
- Setup Action
- Test Action
- Test Result
- Add Another App
- Setup Custom API Call
- Test and Review
- Result
- Add Another App
- Custom API Call Configuration
- Test Action
- Test Result
- Output
We will use this sample PDF Document and delete the empty page.

Step 1: Create a Zap
- To begin. First, log in to your Zapier account and click on the Create Zap button.
Step 2: Google Drive App
- Next, select the Google Drive app and choose the New File in Folder as a trigger.
Step 3: Setup Trigger
Let’s set up the trigger.
- In the Drive field, select My Google Drive.
- In the Folder field, enter the specific folder where your file resides.
Step 4: Test Trigger
- Click the test trigger button to see the result.
Once the test trigger was successful, you may now add another app.
Step 5: Add PDF.co App
- Select the PDF.co app and choose the Custom API Call for the action.
Step 6: Setup Action
Let’s set up the action.
- For the PDF.co API Endpoint field, select the
v1/pdf/info
. This endpoint will extract basic information about input PDF files, PDF file security permissions, and other information. - For the URL input parameter override field, select the Web Content Link from Google Drive.
Step 7: Test Action
- Click the test and review button to test the action.
Step 8: Test Result
- Here’s the basic information that we extracted and find the number of pages from the PDF document.
Now, let’s add another app to check every page and see if the returned text is empty or not.
Step 9: Add Another App
- Select the PDF.co app and choose the Custom API Call for the action.
Step 10: Setup Custom API Call
Let’s set up the Custom API Call configuration.
- For the PDF.co API Endpoint field, click on Custom, and type
v1//pdf/convert/to/text-simple
. This endpoint will convert every page into simple text, and check if the returned text is empty or not. - For the URL input parameter override field, select the Web Content Link from Google Drive.
Step 11: Test and Review
- Click the test and review button to see the result.
Step 12: Result
- Here’s the result for converting the page into simple text and finding the empty page.
Now, let’s add another app to delete the empty page from the PDF document.
Step 13: Add Another App
- Search and select the PDF.co app. Then, choose the Custom API Call to do the action.
Step 14: Custom API Call Configuration
Let’s set up the Custom API Call configuration.
- For the PDF.co API Endpoint field, click on Custom, and type
v1//pdf/edit/delete-pages
. This endpoint will delete the empty page from the PDF document. - For the URL input parameter override field, select the Web Content Link from Google Drive.
- For the Input JSON field, add the JSON code as input parameters.
{
"pages":"1",
"name":"result.pdf",
"async":"false"
}
Step 15: Test Action
- Now, click the test and review buttons to test the action.
Step 16: Test Result
- Once the test was successful, copy the URL and paste it into your browser to view the output.
Step 17: Output
- Great! We successfully deleted the empty page from the PDF document.

This tutorial taught you how to delete empty pages using PDF.co and Zapier. You learned how to use the v1/pdf/info endpoint to find the number of pages in the document. You also learned how to use the v1/pdf/convert/to/text-simple to convert every page into simple text and check if the returned text is empty or not.