Stirling PDF icon

Stirling PDF

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

Actions260

General → Split Pdf

AI-generated

Summary

Split a PDF file into multiple sections based on specified page numbers and divisions, optionally merging the resulting segments into a single PDF.

Inputs

  • Input Binary Field Name (File Input) — Name of the binary property containing the input PDF file data; used when providing the file directly as binary input.
  • File Id — Identifier of a previously uploaded or processed PDF file on the server, used instead of binary input for asynchronous operations.
  • Page Numbers (required) — String indicating pages or page ranges to split by section, with 'SPLIT_ALL' as default to split all pages.
  • Split Mode — Mode defining which pages to split, such as splitting all pages, all except first, last, or a custom selection. Defaults to 'CUSTOM'.
  • Horizontal Divisions (required) — Number of horizontal divisions per page for splitting.
  • Vertical Divisions (required) — Number of vertical divisions per page for splitting.
  • Merge (required) — Boolean flag to merge all split sections back into a single PDF document.

Output shape

a binary file representing either multiple split PDF documents or a merged single PDF file depending on the 'Merge' option

The output is one or more PDF files generated by splitting the input according to pages and divisions specified. The input can be either a binary file or a file ID referencing a previously uploaded file. Additional request options allow controlling batch processing, SSL verification, proxy, and timeout settings.

Links

Discussion