Split PDF using n8n action
PDF4me Split PDF divides PDF documents into smaller files through n8n automation workflows. Process PDFs via n8n triggers, binary data, base64 strings, or public URLs to split by methods including split after page (divide at specific page), recurring split (every N pages), split sequence (multiple specific pages), or split ranges (extract specific page ranges) with flexible file naming options. This solution is ideal for document archiving, content distribution, chapter separation, batch processing, document segmentation, and automated PDF splitting workflows that require flexible splitting methods with preserved quality and seamless integration.
Setup
Add the PDF4me "Split PDF" node to your n8n workflow and configure the required parameters. For initial setup instructions, see our n8n Integration Guide.
Prerequisites:
- PDF4me API credentials
- n8n workflow access
Configuration:
- Add PDF4me node to workflow
- Select "Split PDF" action
- Configure input parameters (see below)

Parameters
Complete list of parameters for the Split PDF action. Configure these parameters to control PDF splitting.
Important: Parameters marked with an asterisk (***) are required and must be provided for the action to function correctly.
| Parameter | Type | Description | Example |
|---|---|---|---|
| Input Data Type*** | String | PDF Input Format Selection • Choose the format of your PDF data input • PDF4me supports multiple input types • Options: Binary Data, Base64 String, or URL | Binary Data |
| Binary Property Name | String | Binary PDF File Input (Required if Binary Data) • Reference PDF file from previous n8n node or file upload • PDF4me processes binary PDF files with automatic format detection • Required when Input Data Type is "Binary Data" | data |
| Base64 Document Content | String | Base64 Encoded PDF Input (Required if Base64 String) • Provide PDF data as base64 encoded string • PDF4me automatically decodes and processes the PDF content • Required when Input Data Type is "Base64 String" | UEsDBBQABgAI... |
| File URL | String | Public PDF URL Input (Required if URL) • Provide a public/open permission URL to the PDF file • PDF4me downloads and processes the file from URL • Required when Input Data Type is "URL" | https://abc.com/sample.pdf |
| File Name*** | String | Output Filename Specification • Specify the base name for generated split PDF files • Must include .pdf extension • PDF4me ensures unique naming and format validation | output.pdf |
| Split Action*** | String | Splitting Method Selection • Choose the method for dividing the PDF document • Options: Split After Page, Recurring Split After Page, Split Sequence, Split Ranges • Different strategies provide various levels of control | Split After Page |
| Split Action Number*** | String | Splitting Parameter • Define splitting criteria based on selected split action • For "Split After Page", specify page number; for "Recurring Split", specify interval • For sequences and ranges, provide comma-separated values or ranges | 1 |
| File Naming*** | String | Output File Naming Strategy • Choose how generated split PDF files will be named • Options: NameAsPerOrder (sequential), NameAsPerPage (with page numbers) • Helps organize output files and maintain clear relationships | NameAsPerOrder |
| Output Binary Field Name*** | String | Binary Data Mapping • Define the variable name for accessing generated split PDF data • Used in subsequent workflow actions • Essential for workflow data flow | data |
Advanced Options
The following parameters are available in the Advanced Options section and are optional:
| Parameter | Type | Description | Example |
|---|---|---|---|
| Custom Profiles | String | Custom Configuration Profiles • Set additional options using custom profiles • JSON-like format containing predefined parameters • Supports outputDataFormat, preserveMetadata, etc. • Optional for specialized requirements | { "outputDataFormat": "base64", "preserveMetadata": true, "optimizeForStorage": true } |
Output
Output Parameters
| Parameter | Type | Description | Example |
|---|---|---|---|
| fileName | String | PDF4me generated split PDF filename - The complete filename of the successfully generated split PDF document with proper .pdf extension. PDF4me ensures unique naming and validates file format compliance for seamless integration with downstream processes | output_1.pdf |
| mimeType | String | PDF4me PDF MIME type - The MIME type of the generated split PDF file, indicating the file format for proper handling in web applications and file systems | application/pdf |
| fileSize | Number | PDF4me PDF file size in bytes - The exact size of the generated split PDF file in bytes, provided by PDF4me for storage planning, bandwidth optimization, and file transfer monitoring. Essential for enterprise document management and workflow automation | 245760 |
| success | Boolean | PDF4me splitting status indicator - Boolean flag indicating the success or failure of the PDF splitting process. PDF4me returns true for successful splitting and false for any errors, enabling robust error handling in automated workflows | true |
| message | String | PDF4me splitting status message - Human-readable status message providing details about the PDF splitting process result. Includes success confirmation or error details for troubleshooting | PDF split successfully into 3 files |
| splitCount | Number | PDF4me number of split files - Indicates how many files were created during the splitting process. Useful for workflow automation and verification of expected output quantity | 3 |
| originalFileName | String | PDF4me source PDF reference - The original PDF filename that was processed by PDF4me's splitting engine. This reference is maintained for audit trails, debugging purposes, and tracking the source of generated split documents in enterprise workflows | document.pdf |
N8N Action Response
The PDF4me Split PDF API returns a response that can be viewed in multiple formats. Choose the view that best fits your needs:
- JSON
- Table
- Schema
- Binary
JSON Response Format
The raw JSON response from the API:
{
"fileName": "output_1.pdf",
"mimeType": "application/pdf",
"fileSize": 245760,
"success": true,
"message": "PDF split successfully into 3 files",
"splitCount": 3,
"originalFileName": "document.pdf"
}
Table View
Response data in a structured table format:
| Parameter | Value |
|---|---|
| fileName | output_1.pdf |
| mimeType | application/pdf |
| fileSize | 245760 |
| success | true |
| message | PDF split successfully into 3 files |
| splitCount | 3 |
| originalFileName | document.pdf |
Schema View
The data structure and types of the response:
1 item
fileName: AB output_1.pdf
mimeType: AB application/pdf
fileSize: # 245760
success: ☑ true
message: AB PDF split successfully into 3 files
splitCount: # 3
originalFileName: AB document.pdf
Type Indicators:
AB= String#= Number☑= Boolean
Binary Data View
The actual split PDF file data and metadata:
data
─────────────────────────────
File Name: output_1.pdf
File Extension: pdf
Mime Type: application/pdf
File Size: 240.0 KB
Use Cases
Document Management and Archiving
- Split large historical documents, research papers, and legal files into manageable sections for improved organization, faster retrieval, and easier navigation through document archives
- Process multi-chapter reports, training manuals, and technical documentation by dividing them into logical sections that align with organizational structure and user access patterns
- Automate the segmentation of scanned document collections and digitized archives to create searchable, categorized document libraries for enhanced information management
Content Distribution and Sharing
- Extract specific chapters, sections, or pages from comprehensive reports and publications to create targeted content for different audiences, stakeholders, and departments
- Split product catalogs, service guides, and marketing materials into focused documents that can be easily shared via email, social media, or client portals without overwhelming recipients
- Process large presentation decks and training materials by creating modular content pieces that can be distributed individually or combined as needed for different training sessions and workshops
Automated Workflow Integration
- Automate the processing of multi-tenant invoices, statements, and reports by splitting master documents into individual client-specific files for personalized distribution and automated billing workflows
- Integrate PDF splitting with document processing pipelines to handle large batch operations, ensuring optimal file sizes for downstream systems, email delivery limits, and storage optimization
- Process regulatory documents, compliance reports, and audit materials by creating segmented versions that align with specific reporting requirements, submission deadlines, and stakeholder needs