Split Document in Power Automate
PDF4me Split Document action enables dividing Word documents into multiple smaller documents in Power Automate 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 across Microsoft 365.
Authenticating Your API Request
To access the PDF4me Web API through Power Automate, every request must include proper authentication credentials. Authentication ensures secure communication and validates your identity as an authorized user, enabling seamless integration between your Power Automate flows and PDF4me's powerful Word document splitting services.

Key Features
- Multiple Split Types: Split by pages, sections, headings, or custom ranges
- Page Range Support: Split based on specific page numbers or ranges
- Section-Based Splitting: Divide documents by Word sections
- Heading-Based Division: Split at specific heading styles (Heading 1, 2, etc.)
- Flexible Configuration: Custom split criteria with SplitConfig parameter
- Unique Document Names: Each split document gets a unique GUID filename
- Format Preservation: Maintains original document formatting and structure
- Culture Support: Locale-specific document processing
Parameters
Complete list of parameters for the Split Document action. Configure these parameters to control document splitting behavior.
| Parameter | Required | What it does | Example |
|---|---|---|---|
| File Content | Optional | Content of the Word document to process. Map it from the file content returned by a previous action, such as SharePoint or OneDrive Get file content. | [File Content from Get File] |
| File Name | Optional | Name of the Word document, including its extension (for example `contract.docx`). | document.docx |
| Split Type | Optional | How to split the document. Enter the settings for the chosen type in Split Config. Options: allpages, array, number of pages, section, headings. | "allpages" |
| Split Config | Optional | Settings for the chosen Split Type. The connector definition does not describe the expected format; see the documentation link of this action. | "1-3,4,5-7" |
| Culture Name | Optional | Specifies the culture or locale to be used (e.g., en-US). | en-US |
Output
The PDF4me Split Document action returns comprehensive output data for seamless Power Automate flow integration:
- Table
- JSON
- Flow Integration
Table View
Response data in a structured table format:
| Field | Type | What it contains |
|---|---|---|
| Split Documents | Array | The resulting Word documents, one item per part. Use an Apply to each over this list and map items('<loop>') into the next action, for example the File Content field of SharePoint or OneDrive Create file. The response contains no file names, so name each file yourself. |
| Success | Yes/No | Whether the operation completed successfully |
| Error Message | Text | Error message if operation failed |
| Error Details | Array | List of detailed error messages |
JSON Response Format
The raw JSON response from the action:
{
"documents": [
{
"document": "[Base64 Split Document 1 Content]",
"fileName": "a1b2c3d4-e5f6-7890-abcd-ef1234567890.docx"
},
{
"document": "[Base64 Split Document 2 Content]",
"fileName": "b2c3d4e5-f6g7-8901-bcde-f23456789012.docx"
}
],
"Success": true,
"ErrorMessage": null,
"Errors": []
}
Error Response Example:
{
"documents": [],
"Success": false,
"ErrorMessage": "Error splitting document",
"Errors": [
{
"Code": "SPLIT_ERROR",
"Message": "Invalid split configuration provided"
}
]
}
Power Automate Flow Usage
Use split documents in subsequent actions:
- Document Distribution: Send individual split documents to different recipients
- Content Management: Organize split documents in different folders
- Parallel Processing: Process multiple split documents simultaneously
- Archive Management: Store split documents in organized archive structure
- Email Distribution: Send specific split documents to relevant stakeholders
- SharePoint Organization: Upload split documents to appropriate libraries
Common Error Messages
Understanding and troubleshooting errors helps ensure smooth document splitting workflows:
| Error Message | Cause | Solution |
|---|---|---|
| "Request is empty" | Request object is null | Provide valid request object |
| "Document is empty" | Document object is null | Provide valid Word document |
| "Error splitting document" | General exception during document splitting | Check document format and parameters. Review exception details in Errors array |
| "Error loading document from bytes" | Invalid or corrupted Word document | Verify the input document is a valid Word file (.docx) |
| "Error converting document to bytes" | Error during document conversion | Check document integrity and format |
| "Invalid split configuration provided" | SplitConfig parameter is invalid for the specified SplitType | Provide valid split configuration based on SplitType |
| "No headings found in document" | Document does not contain the specified heading style | Verify document has the required heading styles |
| "Invalid page range specified" | Page numbers in SplitConfig exceed document page count | Ensure page numbers are within document bounds |
Workflow Examples
The PDF4me Split Document action in Power Automate provides comprehensive workflow templates designed for real-world business scenarios:
- Chapter Extraction
- Page Distribution
- Page Processing
- Section Management
Automated Document Chapter Extraction Workflow
Streamline your document distribution with automated chapter extraction:
Complete Workflow Steps:
- Trigger: Large manual uploaded to SharePoint
- Get Document: Retrieve Word manual from document library
- Split Document: Extract chapters by Heading 1
- Set Parameters: Split Type = "headings", Split Config = "Heading 1"
- Save Chapters: Store individual chapters in organized folders
- Email Teams: Send chapter links to relevant departments
- Archive: Store split documents in chapter library
Business Benefits:
- Extracts 50+ chapters monthly automatically
- Saves 2 hours per manual (automated vs manual extraction)
- Ensures 100% accurate chapter separation
- Enables targeted distribution to specific teams
Automated Page Range Distribution Workflow
Optimize your report distribution with automated page range splitting:
Complete Workflow Steps:
- Trigger: Monthly report ready for distribution
- Get Report: Retrieve Word report from reports library
- Split Document: Create page range documents
- Set Parameters: Split Type = "array", Split Config = "1-5,6-10,11-15"
- Conditional Logic: Route based on stakeholder type
- Email Distribution: Send appropriate sections to each recipient
- Archive: Store split documents in stakeholder folders
Business Benefits:
- Distributes 200+ report sections monthly automatically
- Sends only relevant pages to each stakeholder
- Controls access to sensitive information
- Reduces email size and processing time by 70%
Automated Individual Page Processing Workflow
Enhance your form processing with automated page splitting:
Complete Workflow Steps:
- Trigger: Form document uploaded for processing
- Get Form: Retrieve Word form from upload location
- Split Document: Create individual page documents
- Set Parameters: Split Type = "allpages"
- Parallel Processing: Extract data from each page simultaneously
- Data Aggregation: Combine results into final report
- Archive: Store processed pages in organized structure
Business Benefits:
- Processes 500+ form pages monthly automatically
- Enables parallel processing of multiple pages
- Isolates errors to individual pages
- Handles documents of any size efficiently
Automated Section-Based Document Management Workflow
Optimize your contract management with automated section splitting:
Complete Workflow Steps:
- Trigger: Multi-section contract updated
- Get Contract: Retrieve Word contract from contracts library
- Split Document: Create section-based documents
- Set Parameters: Split Type = "section"
- Department Routing: Send sections to appropriate teams
- Review Tracking: Monitor review progress per section
- Archive: Store split sections in department folders
Business Benefits:
- Manages 100+ contract sections monthly automatically
- Provides department-focused document access
- Enables easier version control per section
- Facilitates parallel review and editing
Industry Use Cases & Applications
- Legal Industry
- Finance & Banking
- Healthcare
- Education
- Manufacturing
- Government
Legal Industry Use Cases
- Contract Management: Split multi-party contracts into individual sections
- Case Documentation: Extract specific pages from case files
- Compliance Reports: Distribute relevant sections to different departments
- Legal Research: Split large legal documents by topic or section
Finance & Banking Use Cases
- Financial Reports: Distribute specific sections to different stakeholders
- Audit Documentation: Extract relevant pages for different audit areas
- Regulatory Compliance: Split compliance documents by regulation type
- Risk Assessment: Distribute risk sections to appropriate teams
Healthcare Use Cases
- Medical Records: Extract specific pages for different specialists
- Research Documentation: Split research papers by methodology or results
- Patient Reports: Distribute relevant sections to different departments
- Compliance Documentation: Split regulatory documents by requirement
Education Use Cases
- Curriculum Materials: Split textbooks into individual chapters
- Student Records: Extract specific pages for different academic departments
- Research Papers: Split large papers by section for peer review
- Administrative Documents: Distribute relevant sections to different offices
Manufacturing Use Cases
- Technical Manuals: Split manuals into individual procedures
- Quality Documentation: Extract specific sections for different quality checks
- Safety Procedures: Distribute relevant safety sections to different teams
- Training Materials: Split training documents by topic or skill level
Government Use Cases
- Policy Documents: Split policies into individual sections for different departments
- Regulatory Documentation: Extract specific pages for different compliance areas
- Public Records: Distribute relevant sections to different agencies
- Legislative Documents: Split bills into individual sections for different committees