Stirling PDF icon

Stirling PDF

Merged API: Stirling PDF - Processing API + Stirling PDF - Management API + Stirling PDF - System API

Actions260

General → Split Pdf 2

AI-generated

Summary

Split a PDF file into multiple documents based on specified page numbers or patterns.

Inputs

  • Input Binary Field Name (File Input) — Name of the binary property containing the PDF file data to split; defaults to 'data' if not specified.
  • File Id — ID of a server-side PDF file to split instead of providing file data directly, useful for async job references.
  • Page Numbers (required) — Defines the split points after which the PDF will be cut; accepts individual page numbers (e.g. '2'), comma-separated lists (e.g. '2,5'), ranges (e.g. '5-9'), the keyword 'all' to split after every page, or functions like '2n+1', '3n', '6n-5'.
  • Request Options — Advanced options controlling batching (item count and interval), SSL certificate validation bypass, proxy settings, and request timeout.

Output shape

a list of binary objects each representing a split PDF document segment

Returns multiple PDF documents split according to the specified pages; the output for each split is a separate binary file. Batching options affect request handling but not output format.

Links

Discussion