PDF files are widely used for various purposes, such as business reports, legal documents, educational materials, and more. However, sometimes you may need to save only certain pages of a PDF file, rather than the entire document. This could be due to privacy concerns, file size limitations, or simply the need to extract specific information from an extended PDF.

Fortunately, with the combination of automation tools like PDF.co and Zapier, saving certain pages of a PDF has become easy. PDF.co is a versatile and user-friendly online platform that offers a wide range of PDF-related functions, including PDF splitting, merging, and page extraction.

In this article, we will guide you through the process of saving certain pages of a PDF file using PDF.co and Zapier. So, let’s get started and learn how to easily save certain pages of a PDF file.

  1. Log in to Zapier Account
  2. Google Drive App
  3. Connect Google Drive Account
  4. Setup Google Drive
  5. Test Trigger
  6. Test Trigger Result
  7. Add PDF.co App
  8. Connect PDF.co Account
  9. Setup PDF.co Action
  10. Test Action
  11. Test Result
  12. Output
  13. Add Another Google Drive
  14. Setup Upload File Configuration
  15. Upload the File to Google Drive
  16. Upload File Result
  17. Save the File to the Folder

We will be using a sample PDF file that contains multiple pages as our example, and we will demonstrate how to save certain pages from this PDF using PDF.co and Zapier.

Sample PDF documents with Multiple Pages
Sample PDF documents with Multiple Pages

Step 1: Log in to Zapier

  • First, log into your Zapier account and click on the Create Zap button.

Step 2: Google Drive App

  • Next, search and select the Google Drive app. Optionally, you can also use other cloud storage apps if you prefer to store the source PDF file in a different location.
  • Then, choose New File in Folder as the trigger for your automation. This will be the event that prompts the automation to start.

Google Drive App

Step 3: Connect Google Drive Account

  • Now, you will need to add a connection between your Google Drive account and Zapier.

Connect Google Drive Account to Zapier

Step 4: Setup Google Drive

Let’s configure your Google Drive settings.

  • First, enter My Google Drive as the designated drive to use.
  • Next, provide the folder name where your file is stored.

Setup Google Drive

Step 5: Test Trigger

  • Once the configuration is complete, click the Test Trigger button to retrieve the file from the specified folder in Google Drive.

Test Trigger

Step 6: Test Trigger Result

  • Great! The test trigger was successful in fetching the file from Google Drive. Now, let’s add another app to the workflow and configure it to save specific pages from the PDF documents.

Test Trigger Result

Step 7: Add PDF.co App

  • For this step, we will integrate the PDF.co app and select the Custom API Call option, which allows us to utilize a specific API endpoint from PDF.co.

Add PDF.co App

Step 8: Connect PDF.co Account

  • Now, we need to establish a connection between PDF.co and Zapier by adding the API Key. You can obtain the API Key from your PDF.co dashboard or sign up for an account at this link.

Connect PDF.co Account

Step 9: Setup Action

Let’s configure the PDF.co action.

  • First, choose the PDF Delete Pages endpoint to remove unnecessary pages from the PDF document and retain only the specific pages you want to save.
  • Next, select the Web Content Link from Google Drive as the input.
  • Then, input the JSON code containing the page numbers to delete from the PDF document, as well as the desired output file name for the remaining pages you want to save.

Setup PDF.co Action

Step 10: Test Action

  • Now, let’s test the action to send a request to PDF.co to remove unnecessary pages from the PDF document and retain only the specific pages you want to save.

Test Action

Step 11: Test Result

  • Excellent! PDF.co has successfully processed our request and provided us with a temporary URL that contains specific pages from the PDF document. To view the output, copy the URL and paste it into your browser.

Test Result

Step 12: Output

  • Below is the output containing specific pages from the PDF document. We can add another application and save desired pages.
PDF Delete Pages Output
PDF Delete Pages Output

Step 13: Add Another Google Drive

  • In this step, we’ll add the Google Drive app and select the Upload File option to save files to a specific folder in Google Drive. Alternatively, you can choose another cloud storage service to save the files.

Save File to Storage

Step 14: Setup Upload File Configuration

Let’s set up the Upload File configuration.

  • Select My Google Drive as the Drive to be used.
  • Choose the folder in Google Drive where you want to save the file.
  • Specify whether you want to convert the output file to a document by selecting “Yes” or “No”.
  • Choose the output URL from the PDF.co response.
  • Specify an extension for your output file.

Upload File Configuration

Step 15: Upload the File to Google Drive

  • Now that the configuration is set up, let’s proceed to test the action of uploading the file to the designated folder in Google Drive.

Upload File to Google Drive

Step 16: Upload File Result

  • Congratulations! The file has been successfully uploaded to Google Drive and saved in the designated folder. You can now check your Google Drive account to verify the uploaded file.

Upload File Result

Step 17: Save the File to the Folder

  • Here’s the Google Drive folder where the file containing specific pages has been successfully saved.

Save File to Folder

In this tutorial, you’ve learned how to save specific pages from a PDF document using PDF.co and Zapier. Additionally, you’ve learned how to utilize the PDF.co Delete Pages endpoint to remove unnecessary pages and retain only the pages you want to save.