1. PDF Tools
  2. Split PDF by Pages

PDF Tools

Split PDF by Pages

Splits PDFs at specified page numbers. Useful for extracting sections, distributing documents, and batch processing.

Uses

Use this task for splitting a PDF into multiple smaller PDFs at specified page numbers.

Basic Usage

loading...

Parameters Explained

files
required
array

An array of PDF file objects to be split at specified page numbers.

page_numbers
required
string

The page numbers after which the PDF file is split. In the case of 1,5,6-8, the result will be six PDF files, the first of which will contain page 1, the second of which will contain pages 2-5, the third of which will contain page 6, a set of single page PDFs of pages 7-8 and a final PDF with pages 9 till the end of the original PDF. The value all splits after every page.

function
required
string

The pdf_tools function to call, in this case it would be split_pages

Result

The newly created files are returned in files. The same files are returned in attachments, which adds them to the stub's attachments.

editor
        {
  "split_pdf_by_pages": {
    "success": true,
    "payload": {
      "files": [
        {
          "fileuuid": "8142ce6c-f3cd-526c-a5d3-747799ed2b01",
          "filename": "report_1.pdf",
          "originalname": "report_1.pdf",
          "contentType": "application/pdf",
          "visibility": "private"
        },
        {
          "fileuuid": "8142ce6c-f3cd-526c-a5d3-747799ed2b02",
          "filename": "report_2.pdf",
          "originalname": "report_2.pdf",
          "contentType": "application/pdf",
          "visibility": "private"
        }
      ],
      "attachments": [...]
    }
  }
}