Split PDF
AI-generatedSummary
Split a PDF into multiple files using the Bastian Technologies API.
Inputs
- pdfFile (required) — Name of the binary property that contains the source PDF (default: 'data').
- splitMode — How to split the PDF. Options: 'all' (each page as separate file), 'ranges' (by page ranges), 'fixed' (fixed pages per file). Default: 'all'.
- splitRanges — Page ranges for each output file when splitMode is 'ranges' (e.g., '1-3,4-6,7-10'). Default: '1-3,4-6'.
- pagesPerSplit — Number of pages per output file when splitMode is 'fixed'. Default: 5.
- options.pollingInterval — How often to check job status in milliseconds. Default: 2000.
- options.timeout — Maximum time to wait for job completion in milliseconds. Default: 300000.
Output shape
For each input item, returns one output item containing:
- Binary property 'data' holding a ZIP archive named 'split_pdfs.zip' with the resulting PDF files. - JSON property with fields: { success: true, jobId: string, fileCount: number, files: string[] }.
