Split Word Document using n8n action
PDF4me Split Word Document enables dividing Word documents into multiple smaller documents through n8n automation workflows with flexible splitting options and comprehensive configuration control. This powerful document splitting feature supports page-based splitting, section-based division, heading-based separation, and custom page ranges with full control over split criteria, document naming, and output organization, perfect for document management, content distribution, and workflow automation.
Setup
Add the PDF4me "Split Word Document" 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 Word Document" action
- Configure input parameters (see below)

Parameters
Complete list of parameters for the Split Word Document action. Configure these parameters to control document splitting behavior.
Important: Parameters marked with an asterisk (***) are required. Advanced parameters provide fine-grained control over splitting criteria and document processing.
| Parameter | Type | Description | Example |
|---|---|---|---|
| Input Data Type*** | String | Word Document Input Format Selection • Choose the format of your Word document data input • PDF4me supports multiple input types • Options: Binary Data, Base64 String, or URL | Binary Data |
| Input Binary Field*** | Binary | Binary Word File Input (Required if Binary Data) • Reference Word file (.docx, .doc) from previous n8n node or file upload • PDF4me processes binary Word files with automatic format detection • Required when Input Data Type is "Binary Data" | {{ $binary.data }} |
| Base64 Word Content*** | String | Base64 Encoded Word Input (Required if Base64 String) • Provide Word content (.docx, .doc) as base64 encoded string for secure transmission • PDF4me automatically decodes and processes the Word content • Required when Input Data Type is "Base64 String" | UEsDBBQABgAI... |
| Word Document URL*** | String | Public Word Document URL Input (Required if URL) • Provide a public/open permission URL to the Word file (.docx, .doc) to be processed • PDF4me downloads and processes the Word file from the provided URL • Required when Input Data Type is "URL" | https://abc.com/document.docx |
| Word Document Name*** | String | Word Document Input Filename • Specify the name of the input Word file with proper extension (.docx, .doc) • PDF4me uses this for format detection and processing optimization | document.docx |
| Split Type | String | Type of Document Splitting • allpages - Split into individual pages (default) • array - Split based on page ranges (e.g., "1-3,4,5-7") • numberofpages - Split based on page ranges (same as "array") • section - Split by document sections • headings - Split by heading styles (e.g., "Heading 1") | "allpages" |
| Split Config | String | Configuration for Splitting • Page Ranges: "1-3,4,5-7" (pages 1-3, page 4, pages 5-7) • Single Pages: "1,3,5" (pages 1, 3, and 5) • Heading Styles: "Heading 1" or "Heading 2" • Required when Split Type is "array", "numberofpages", or "headings" | "1-3,4,5-7" |
| Culture Name | String | Document Culture/Locale • Culture code for document processing (e.g., "en-US", "de-DE", "fr-FR") • Default: "en-US" • Affects document language and formatting | en-US |
Output
Output Parameters
| Parameter | Type | Description | Example |
|---|---|---|---|
| fileName | String | Split document filename - The name of the output split Word document file | document_part1.docx |
| fileSize | Number | File size in bytes - The size of the split Word document in bytes | 13398 |
| partNumber | Number | Part number - The sequential number of this split part (1-based) | 1 |
| totalParts | Number | Total number of parts - The total number of split parts created from the original document | 1 |
| success | Boolean | PDF4me operation status - Boolean flag indicating the success or failure of the document splitting operation. PDF4me returns true for successful operations and false for any errors | true |
| originalFileName | String | Original Word document filename - The name of the input Word document file | document.docx |
| splitType | String | Split type used - The type of splitting that was applied (e.g., "Pages", "Sections", "Headings") | Pages |
| pageRanges | String | Page ranges - The page ranges that were used for splitting (e.g., "1,2,3" or "1-3,4,5-7") | 1,2,3 |
| cultureName | String | Document culture/locale - The culture code used for document processing (e.g., "en-US", "de-DE", "fr-FR") | en-US |
| message | String | Operation message - Descriptive message indicating the result of the splitting operation, including part information | Split document part 1 of 1 |
N8N Action Response
The PDF4me Split Word Document 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": "document_part1.docx",
"fileSize": 13398,
"partNumber": 1,
"totalParts": 1,
"success": true,
"originalFileName": "document.docx",
"splitType": "Pages",
"pageRanges": "1,2,3",
"cultureName": "en-US",
"message": "Split document part 1 of 1"
}
]
Table View
Response data in a structured table format (showing first split document):
| Parameter | Value |
|---|---|
| fileName | document_part1.docx |
| fileSize | 13398 |
| partNumber | 1 |
| totalParts | 1 |
| success | true |
| originalFileName | document.docx |
| splitType | Pages |
| pageRanges | 1,2,3 |
| cultureName | en-US |
| message | Split document part 1 of 1 |
Note: Multiple documents are returned in the array, one for each split section.
Schema View
The data structure and types of the response:
1 item
[0]
fileName: T document_part1.docx
fileSize: # 13398
partNumber: # 1
totalParts: # 1
success: ☑ true
originalFileName: T document.docx
splitType: T Pages
pageRanges: T 1,2,3
cultureName: T en-US
message: T Split document part 1 of 1
Type Indicators:
T= String (Text)#= Number☑= Boolean[]= Array
Binary Data View
The actual Word document file data and metadata (for each split document):
data
─────────────────────────────
File Name: document_part1.docx
File Extension: docx
Mime Type: application/vnd.openxmlformats-officedocument.wordprocessingml.document
File Size: 13.4 kB
Binary Data Access:
- n8n Binary Object:
$binary.data.data(for each split document) - Base64 Content: Available for direct use
- File Operations: Ready for download, email, or storage
- Multiple Files: Each split section is available as a separate binary item
Use Cases
Enterprise Document Automation
- Document Management: Divide large documents into manageable sections
- Content Distribution: Split documents for targeted distribution
- Workflow Automation: Process document sections separately
- Archive Management: Organize documents by splitting into logical sections
AI-Powered Document Processing
- Multi-Format Support: Process Word documents in .docx and .doc formats
- Multi-Language Processing: Support for different languages and regions
- Intelligent Splitting: Automatic splitting based on document structure
Business Intelligence and Analytics
- Document Organization: Organize documents with proper structure
- Content Management: Manage content by splitting into logical units
- Performance Metrics: Track processing accuracy and efficiency