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).

POST/fx/pdf/split-to-zipAPI docs

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

NameTypeDescription
organizationIdstringrequiredThe ID of the organization making the request
pdfBase64stringrequiredThe PDF file encoded as a base64 string
strategystringrequiredSplitting strategy: 'pages' for manual page numbers, 'prompt' for AI-driven splitting
pageIndicesarrayoptional1-based page numbers to split after (e.g. [3, 6, 9]). Required when strategy is 'pages'.
promptstringoptionalNatural language instruction for splitting (e.g. 'Split after each invoice'). Required when strategy is 'prompt'.

Response

NameTypeDescription
urlstringTemporary signed URL for downloading the ZIP file (1h expiry)
filenamestringFilename of the ZIP (split.zip)