
How to Split PDF in Google Drive Folder with Google Apps Script and PDF.co
6 MIN READ
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.
Let’s start by logging in to your Make account and creating a new scenario.
First, add the PDF.co module and select the Make an API Call.
Let’s set up the configuration.
/pdf/edit/delete-pages endpoint.pages1-2 — enter this as a text value without surrounding quotation marks.1-2 deletes the first two pages and retains the original third and fourth pages.2 deletes only page two; it does not mean “delete two pages.” Always provide a nonempty selection.After setting up the configuration, you may now run the scenario.
Excellent! The scenario runs successfully. You can copy the URL and paste it into your browser to view the output.
Here’s the output after we successfully deleted pages 1 and 2.
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.
Create an account, get an API key and test a request.