Gotenberg icon

Gotenberg

Convert documents and manipulate PDFs using Gotenberg (Chromium, LibreOffice, PDF Engines)

PDF Engines → Split PDF

AI-generated

Summary

Split a PDF into multiple PDF files.

Inputs

  • binaryPropertyName (required) — Name of the binary property (or comma-separated list of names for merge) containing the input PDF(s)
  • splitMode — How to split the PDF (intervals or pages)
  • splitSpan — Number of pages per chunk for intervals mode, or comma-separated page ranges for pages mode
  • splitUnify — Whether to unify duplicate streams after splitting

Output shape

list of items, each containing a binary file and JSON metadata (filename, mimeType)

Multiple items may be returned (one per split chunk); the binary is stored under outputBinaryPropertyName; outputFilename provides the filename; mimeType is set to application/pdf.

Examples

Example 1: Split a single PDF into three equal parts using default interval mode.

Set splitMode to 'intervals', splitSpan to '3', leave splitUnify false.

Example 2: Split at custom page ranges, e.g., pages 1‑5 and 7‑10.

Set splitMode to 'pages' and splitSpan to '1-5,7-10'.

Example 3: Split and unify duplicate streams to avoid redundancy.

Enable splitUnify true; other settings use defaults.

Links

Discussion