Actions40
- AI Actions
- Business Actions
- Calculate Actions
- Code Actions
- Convert Actions
- Crypto Actions
- Generate Actions
- Operator Actions
- PDF Actions
- Storage Actions
PDF → Split PDF Files
AI-generatedOverview
The Split PDF Files operation in the "PDF" resource of this custom n8n node allows users to split a PDF document into multiple parts. The source PDF can be provided either as a URL or as binary data. Users can choose to split the PDF by specifying page ranges (e.g., pages 1–3, 4–6) or by a fixed interval (e.g., every 2 pages). This is useful for automating document processing workflows, such as extracting specific sections from large PDFs, preparing documents for distribution, or batch-processing scanned files.
Example scenarios:
- Extracting chapters from an eBook PDF.
- Splitting invoices or reports into individual pages for archiving.
- Automating the separation of multi-page scanned documents.
Properties
| Name | Meaning |
|---|---|
| URL or Binary Data | Choose how to provide the PDF: - URL: Link to the PDF file. - Binary Data: Upload or reference binary data within n8n. |
| URL | The direct link to the PDF file (used if "URL or Binary Data" is set to "URL"). |
| Binary Data | The name of the binary property containing the PDF data (used if "URL or Binary Data" is set to "Binary Data"). |
| How Do You Want to Split the PDF? | Select the splitting method: - Page Ranges: Define custom start and end pages for each split. - Interval: Split every N pages. |
| Page Ranges | (If "Page Ranges" selected) Specify one or more start/end page pairs to define how the PDF should be split. |
| Interval | (If "Interval" selected) The number of pages per split (e.g., enter 2 to split every 2 pages). |
Output
- The output will be a JSON array where each item represents a result of the split operation.
- Each output item typically contains information about the resulting PDF parts, such as URLs or references to the split files.
- If binary data is returned, it will represent the split PDF files themselves, which can be used in subsequent workflow steps.
Note: The exact structure of the output depends on the API/service response, but generally includes references to the split PDF files.
Dependencies
- External Service: Requires access to the CodeKit API (as indicated by the need for
codeKitApicredentials). - n8n Configuration: The node must be configured with valid CodeKit API credentials in n8n.
Troubleshooting
Common Issues:
- Invalid URL or Binary Data: Ensure the PDF URL is accessible or the binary data is correctly referenced.
- Incorrect Page Ranges/Intervals: Specifying out-of-bounds or overlapping page ranges may cause errors.
- Missing Credentials: The node requires valid CodeKit API credentials; missing or invalid credentials will prevent execution.
Error Messages:
"error": "..."in the output: Indicates an error occurred during processing. Check the error message for details (e.g., invalid input, authentication failure).- Network/API Errors: If the external service is unreachable or returns an error, ensure network connectivity and correct API configuration.
Links and References
- n8n Documentation: Custom Nodes
- PDF Split Use Cases
- For CodeKit API documentation, refer to your provider's official resources.