All functions

splitPdf

Split a multi-document PDF into separate PDF files. Supports page-based or AI prompt-based splitting. Returns an array of temporary signed URLs (1h expiry).

POST/fx/pdf/splitAPI docs

4 credits / 1 execution / request

Use cases

Split multi-invoice PDFs

Process batched invoices in one file. Use prompt-based splitting with "Split after each invoice" to automatically separate documents for accounting or archival.

Extract chapters or sections

Split scanned books or reports by chapter using page-based splitting. Specify pageIndices like [10, 25, 42] to create one PDF per section.

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
filesarrayArray of { url, filename } objects with temporary signed URLs