PDF Tools
Split PDF by Pages
Splits PDFs at specified page numbers. Useful for extracting sections, distributing documents, and batch processing.
Uses
Use this task for splitting a PDF into multiple smaller PDFs at specified page numbers.
Basic Usage
Parameters Explained
files required array
An array of PDF file objects to be split at specified page numbers.
page_numbers required string
The page numbers after which the PDF file is split. In the case of 1,5,6-8, the result will be
six PDF files, the first of which will contain page 1, the second of which will contain pages 2-5, the third of which will contain page 6, a set of single page PDFs of pages 7-8 and a final PDF with pages 9 till the end of the original PDF.
The value all splits after every page.
function required string
The pdf_tools function to call, in this case it would be split_pages
Result
The newly created files are returned in files. The same files are returned in attachments, which adds them to the stub's attachments.