SplitPDF
Description
Splits a multi-page PDF (binary) into a list of PDFs (list[binary]).
The default is splitting each individual page of the input PDF in separate elements in a list.
Use the Every Nth page configuration setting to create list elements containing multiple pages.
Use
- Input document:
- Select the input field with PDF files. (Binary)
- Every Nth page: (Optional)
- Split the PDF into list elements based on a set number of pages.
- Output field name:
- Enter an output field name.
Example
In this example, you have a PDF file that has 12 pages. Your goal is to separate the pages into individual PDF files.
In your Flow, select the SplitPDF function and add the field containing the multi-page PDF file.
The pages for each PDF file have now been added as elements in a list.
[page0.pdf, page1.pdf, page2.pdf, page3,pdf, page4.pdf, page5.pdf, page6.pdf, page7.pdf, page8.pdf, page9.pdf]
You can now use a function like Flatten List to separate each element (each PDF page) in the list.
When displaying the preview of the data in Hero Platform_, this new column will appear empty as binary files are not displayed in Flow previews.
Add an Output with a output field for the PDF files and run the Flow.
In this example, the original PDF had 10 pages. Now each individual page is its own individual file.