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

Delete Pages from a PDF Using PDF.co and Zapier

Automatically remove selected pages from PDFs added to Google Drive and save the edited files in another folder. In this example, we remove pages 1 and 2 from a five-page PDF, leaving the original pages 3–5.

Prerequisites

  • PDF.co, Zapier, and Google Drive accounts.
  • Separate Google Drive folders for source PDFs and processed files.
  • A five-page PDF in the source folder for testing.

Step 1: Set Up the Google Drive Trigger

Create a Zap and select Google Drive with the New File in Folder trigger.

Connect your Google account, select the drive and source folder, then test the trigger. Choose your sample PDF.

Step 2: Configure PDF.co

Add PDF.co and select PDF Page Tools. Connect your PDF.co account through OAuth.

Configure the action:

  • Source PDF: Map the File property from the Google Drive trigger.
  • Mode: Select Delete Pages.
  • Page Numbers: Enter 1-2.
  • Rotation settings: Leave unchanged; they are not used when deleting pages.

Page numbering for deletion starts at 1. You can enter individual pages, ranges, or a combination, such as 1,3-5. See the PDF Page Tools documentation.

To name the generated file, enter this valid JSON in Custom Profiles:

{
  "std_params": {
    "name": "DeletedPages.pdf"
  }
}

Step 3: Test the Page Deletion

Test the PDF.co action and open the returned PDF URL.

Confirm that the result contains three pages corresponding to the original pages 3–5. The source PDF remains unchanged.

Step 4: Save the Result to Google Drive

Add Google Drive’s Upload File action and configure:

  • Drive: Select your destination drive.
  • Folder: Select the processed-files folder.
  • File: Map the PDF URL returned by PDF.co.
  • File Name: Enter DeletedPages.pdf or map a unique name.
  • Convert to Document: Select No.

Use a different folder from the trigger folder to prevent the processed file from starting the workflow again.

Test the upload and check the saved PDF. Publish the Zap to process new files automatically.

In conclusion, this tutorial has walked you through the process of deleting specific pages from a PDF document, leaving you with a customized file that retains only the content you need. Whether for decluttering, reorganizing, or preparing a document for sharing, this method offers a straightforward solution to managing your PDF content.

Related Tutorials

See Related Tutorials