prokodo (PDF Toolkit) icon

prokodo (PDF Toolkit)

Merge, split, convert to images, OCR for PDFs

Split PDF

AI-generated

Summary

Split a single input PDF into multiple documents either by extracting every page as a separate PDF or by splitting according to specified page ranges.

Inputs

  • Binary Property (Input) (required) — The binary property name on the incoming item containing the PDF file as base64 data, defaults to "data".
  • Split Mode (required) — Choose how to split the PDF: either every page individually or by custom page ranges.
  • Ranges — Specify page ranges to split by in a string format such as "1,3-5,10-" (1-based, inclusive). Only used when Split Mode is "By Ranges".
  • Output Property (required) — The binary property name set on each output item containing the resulting split PDF file, defaults to "data".

Output shape

a list of items each containing a JSON object with the pages included in that split (start and end page) and a binary property with the split PDF file

Only a single input item with one PDF is accepted. When splitting by ranges, invalid or out-of-bound ranges will result in an error. The output items correspond to each split PDF segment.

Examples

Example 1: Split input PDF into individual pages

Set Split Mode to "Every Page" to output each page of the input PDF as a separate PDF file in its own item.

Example 2: Split input PDF by custom page ranges

Set Split Mode to "By Ranges" and specify page ranges using the Ranges string (e.g. "1,3-5") to output separate PDFs for each defined range.

Discussion