Skip to main content

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.

Related Blog Posts
No blog post yet for this feature — coming soon.
In the meantime, browse the PDF4me blog for tutorials and workflows across every platform.
Visit the blog →

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.

Split Document Power Automate

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.

ParameterRequiredWhat it doesExample
File ContentOptionalContent 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 NameOptionalName of the Word document, including its extension (for example `contract.docx`).document.docx
Split TypeOptionalHow to split the document. Enter the settings for the chosen type in Split Config. Options: allpages, array, number of pages, section, headings."allpages"
Split ConfigOptionalSettings 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 NameOptionalSpecifies 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 View

Response data in a structured table format:

FieldTypeWhat it contains
Split DocumentsArrayThe 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.
SuccessYes/NoWhether the operation completed successfully
Error MessageTextError message if operation failed
Error DetailsArrayList of detailed error messages

Common Error Messages​

Understanding and troubleshooting errors helps ensure smooth document splitting workflows:

Error MessageCauseSolution
"Request is empty"Request object is nullProvide valid request object
"Document is empty"Document object is nullProvide valid Word document
"Error splitting document"General exception during document splittingCheck document format and parameters. Review exception details in Errors array
"Error loading document from bytes"Invalid or corrupted Word documentVerify the input document is a valid Word file (.docx)
"Error converting document to bytes"Error during document conversionCheck document integrity and format
"Invalid split configuration provided"SplitConfig parameter is invalid for the specified SplitTypeProvide valid split configuration based on SplitType
"No headings found in document"Document does not contain the specified heading styleVerify document has the required heading styles
"Invalid page range specified"Page numbers in SplitConfig exceed document page countEnsure 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:

Automated Document Chapter Extraction Workflow

Streamline your document distribution with automated chapter extraction:

Complete Workflow Steps:

  1. Trigger: Large manual uploaded to SharePoint
  2. Get Document: Retrieve Word manual from document library
  3. Split Document: Extract chapters by Heading 1
  4. Set Parameters: Split Type = "headings", Split Config = "Heading 1"
  5. Save Chapters: Store individual chapters in organized folders
  6. Email Teams: Send chapter links to relevant departments
  7. 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

Industry Use Cases & Applications​

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

Get Help​