Link Search Menu Expand Document

How to split PDF into individual pages

The pdf/split API endpoint enables the splitting of a PDF document into multiple PDF files, either by page indexes and/or by page ranges. To split the PDF into individual pages, you can simply use the symbol * in the pages parameter.

The first page of the document is indexed as 1. To specify a page range, use the dash - symbol; for example, 1,2-5,7- would denote a range that includes pages 1, 2 to 5, and 7 onwards.

For instance, if you have a 4-page PDF file, and you want to split it into three separate PDF files, you can use the following input parameters:

{
    "url": "https://pdfco-test-files.s3.us-west-2.amazonaws.com/pdf-split/sample.pdf",
    "pages": "1,2,3-",
}

This will split the PDF into three files, each containing one of the first two pages and the last two pages of the original document.

For more information, please visit the PDF Splitter API Docs here.

Integromat/Make

Our PDF Splitter is available as a Split a PDF module in Integromat/Make. If you require to generate over 25 PDF files in one API call, we recommend that you use our Make an API Call module.

Here’s a step-by-step guide on how to split over 25 PDF pages in Integromat/Make using the PDF.co Make an API Call module:

  1. Open Integromat/Make and create a new scenario.
  2. Add the PDF.co Make an API Call module to the scenario.
  3. In the API Endpoint Path field, enter /v1/pdf/split.
  4. In the Input Type field, choose to Override the url param with a value and enter the URL of the PDF file you want to split.
  5. Click on Add item under the Body section.
  6. In the Key field, enter pages param and * as its value to split each page individually.
  7. Run the scenario to see the result.

Note: The Split a PDF module in Integromat/Make has a 25-file limitation, so you can use the PDF.co Make an API Call module to split a PDF file with more than 25 pages.