1. PDF Tools
  2. Split PDF by Page Count

PDF Tools

Split PDF by Page Count

Splits 1 or multiple PDF files into multiple PDF files containing N pages each.

Uses

Use this task to split 1 or more pdf files into new files of a set number of pages.

Basic Usage

loading...

Parameters Explained

files
required
array

An array of PDF files whose pages should be split into sections.

split_value
required
integer

The number of pages each new PDF file should contain.

function
required
string

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

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_page_count": {
    "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": [...]
    }
  }
}