All functions
splitPdfToZip
Split a multi-document PDF into separate PDF files and bundle them into a ZIP archive. Supports page-based or AI prompt-based splitting. Returns a temporary signed URL (1h expiry).
5 credits / 1 execution / request
Use cases
Bulk export for download
Split a multi-document PDF and bundle as ZIP for one-click download. Ideal for exporting invoice batches, scanned documents, or report sections.
Archive preparation
Prepare archival packages from combined PDFs. Use AI prompt splitting to separate documents, then ZIP for compliance or backup workflows.
Parameters
| Name | Type | Description | |
|---|---|---|---|
| organizationId | string | required | The ID of the organization making the request |
| pdfBase64 | string | required | The PDF file encoded as a base64 string |
| strategy | string | required | Splitting strategy: 'pages' for manual page numbers, 'prompt' for AI-driven splitting |
| pageIndices | array | optional | 1-based page numbers to split after (e.g. [3, 6, 9]). Required when strategy is 'pages'. |
| prompt | string | optional | Natural language instruction for splitting (e.g. 'Split after each invoice'). Required when strategy is 'prompt'. |
Response
| Name | Type | Description |
|---|---|---|
| url | string | Temporary signed URL for downloading the ZIP file (1h expiry) |
| filename | string | Filename of the ZIP (split.zip) |