Autype icon

Autype

Interact with the Autype Developer API for document generation, PDF tools, and more

Document Tool → Split PDF

AI-generated

Summary

Splits a PDF into separate parts by specified page ranges

Inputs

  • fileId (required) — ID of the file uploaded via the File resource. Use File > Upload to get a file ID.
  • ranges (required) — Comma-separated page ranges to split into separate PDFs (e.g. '1-3,4-6,7-')
  • waitForCompletion — Whether to wait for the tool job to complete before returning
  • downloadOutput — Whether to automatically download the output file as binary data after completion

Output shape

json|binary

Returns the tool job's response data as JSON if downloadOutput is false or the job has not completed. If downloadOutput is true and the job completes successfully, returns the split PDF as binary data with file metadata (fileName, mimeType).

Examples

Example 1: Split first three pages of a PDF into a separate file

fileId: 'abc123', ranges: '1-3'

Links

Discussion