Overview
This node splits a PDF file into individual pages, creating separate PDF files for each page or a specified range of pages. It is useful for workflows that require processing or distributing individual pages from a multi-page PDF, such as extracting specific pages for review, archiving, or sending as separate documents.
Use Case Examples
- Splitting a multi-page PDF into single-page PDFs for individual processing.
- Extracting specific pages from a PDF based on a page range for targeted distribution.
- Renaming output files with custom prefixes and page numbers for organized storage.
Properties
| Name | Meaning |
|---|---|
| Binary Property | The name of the binary property that contains the PDF file to be split. |
| Output Options | Options to customize the output file names and specify the page range to split. |
Output
JSON
jsonpageNumber- The page number of the split PDF page.totalPages- The total number of pages in the original PDF.error- Error message if processing a specific page fails.
Dependencies
- pdf-lib library for PDF manipulation
Troubleshooting
- Error 'No binary data found': Ensure the specified binary property contains a valid PDF file.
- Error 'The PDF document has no pages': The input PDF is empty or corrupted.
- Page processing errors: Individual page extraction might fail due to corrupted pages; errors are logged and included in output.