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

How to Delete Pages from PDF using PDF.co and Make

3 MIN READ

In this tutorial, we will show you how to delete pages from PDF using PDF.co and Make. We will use a sample PDF with four pages and delete pages 1-2.

Sample Source PDF

Let’s start by logging in to your Make account and creating a new scenario.

PDF.co Module and Make an API Call

First, add the PDF.co module and select the Make an API Call.

Make an API Call Configuration

Let’s set up the configuration.

  • For the PDF.co API Endpoint Path field, type in /pdf/edit/delete-pages endpoint.
  • For the Input Type field, you can choose either Upload files and inject as ‘url’ param or override ‘url’ param with value as an input.
  • Then, enter the direct URL of your source file.
  • Type in your desired PDF Output File Name.
  • Under Body, add:
    • Key: pages
    • Value: 1-2 — enter this as a text value without surrounding quotation marks.
    • This endpoint uses 1-based page numbers. For the four-page sample, 1-2 deletes the first two pages and retains the original third and fourth pages.
    • A value of 2 deletes only page two; it does not mean “delete two pages.” Always provide a nonempty selection.
    • See the PDF Delete Pages documentation for supported page-selection formats.

After setting up the configuration, you may now run the scenario.

Run Scenario Result

Excellent! The scenario runs successfully. You can copy the URL and paste it into your browser to view the output.

Output

Here’s the output after we successfully deleted pages 1 and 2.

Source File Output

In this tutorial, you learned how to delete specific pages from a PDF using PDF.co and Make. You configured the page selection and checked that the output retained the correct pages. For this example, the resulting PDF should contain the original third and fourth pages.

Was this page helpful?

Related Tutorials

See Related Tutorials

Try it with your document.

Create an account, get an API key and test a request.

Get Started Free

© Copyright 2016-2026 Artifex Software, Inc d/b/a PDF.co — All Rights Reserved