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.
Important: Parameters marked with an asterisk (***) are required. Advanced parameters provide fine-grained control over splitting criteria and document processing.
| Parameter | Type | Description | Example |
|---|---|---|---|
| File Content*** | Base64 | Source Word File Content • Map Word file from previous action output • Supports Word files from SharePoint, Dropbox, OneDrive, email attachments • Can be dynamically retrieved from flow variables • All type of file content can get from the Dropbox Get File actions • Direct base64 can be given in the file content also • Must be valid Word document (.docx, .doc formats) • Document is split based on specified criteria | [File Content from Get File] |
| File Name*** | String | Word Document Name • Specify Word file name with extension (.docx, .doc) • Used for reference and processing • Must include proper file extension • Supports dynamic naming from flow variables • Used for document identification during splitting | 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") • Controls how the document is divided • Each split document gets a unique GUID filename • Preserves original document formatting and structure | "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" • Defines specific splitting criteria • Page numbers are 1-based (user-friendly) • Validates page ranges against document page count • Heading-based splitting is case-insensitive | "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 • Use valid culture codes for international documents • Used for metadata and localization handling | 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:
| Parameter | Type | Description |
|---|---|---|
| documents | Array | Array of split document objects |
| documents[].document | Base64 | Individual split document content (base64-encoded) |
| documents[].fileName | String | Generated filename for the split document |
| Success | Boolean | true if operation successful, false if failed |
| Error Message | String | Error description (null if successful) |
| Errors | Array | List of detailed error information (empty array if successful) |
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