Skip to main content

Split PDF by Text in Power Automate

PDF4me Split PDF by Text action automatically separates PDF documents by searching for specific text phrases within content in Power Automate. This intelligent splitting feature scans document text for unique identifiers, chapter headers, section titles, or keywords, splits before or after matching pages, and enables automated document organization based on content markers, perfect for report segmentation, document routing, and content-based separation across Microsoft 365 workflows.

Related Blog Posts(1)

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 text-based splitting services.

Split PDF by Text Power Automate

Key Features​

  • Text Search Splitting: Find and split at pages containing specific text
  • Phrase Detection: Search for unique phrases within document content
  • Split Position Control: Choose to split before or after matched page
  • Content-Based Routing: Automatically organize documents by text markers
  • Batch Processing: Split multiple documents based on text patterns

Parameters​

Complete list of parameters for the Split PDF by Text action. Configure these parameters to control text-based splitting.

ParameterRequiredWhat it doesExample
File ContentRequiredContent of the PDF to split. 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 NameRequiredName of the PDF to split, including its extension (for example `invoice.pdf`). Map it from the file name returned by a previous action.Report.pdf
TextRequiredText to search for. The PDF is split at each page where it is found.Chapter
Split TypeRequiredWhether to split before or after the page that contains the text. Options: before, after. Defaults to `before`.Before
Split File NamingOptionalHow the split files are named: WithPageNumber includes the page numbers in the file names, NameAsPerOrder numbers the files in order. Options: WithPageNumber, NameAsPerOrder. Defaults to `NameAsPerOrder`.NameAsPerOrder

Output​

The PDF4me Split PDF by Text action returns comprehensive output data for seamless Power Automate flow integration:

Table View

Response data in a structured table format:

FieldTypeWhat it contains
splitedDocumentsArraySplit files. Use an Apply to each over this list to save each file.
splitedDocuments[].File NameTextFile name of the split file.
splitedDocuments[].TextTextText read from the split file.
splitedDocuments[].File ContentFile contentContent of the split file. Map it into the next action, for example the File Content field of Create file.

Workflow Examples​

The PDF4me Split PDF by Text action in Power Automate provides comprehensive workflow templates designed for real-world business scenarios:

Automated Book Chapter Separation Workflow

Transform book processing with automated chapter splitting:

Complete Workflow Steps:

  1. Trigger: Complete book PDF uploaded for processing
  2. Get Book: Retrieve full book PDF from SharePoint
  3. Split by Chapter: Search for "Chapter" text and split before
  4. Apply to Each: Process each chapter individually
  5. Extract Chapter Number: Parse chapter number from first page
  6. Rename Files: Name each file with chapter number
  7. Upload Chapters: Save individual chapters to library
  8. Create Index: Build chapter index with file references

Business Benefits:

  • Separates 20+ books monthly into chapters automatically
  • Enables individual chapter distribution and access
  • Reduces book processing time by 90%
  • Facilitates chapter-level content management

Industry Use Cases & Applications​

Publishing & Media Use Cases

  • Chapter Separation: Split books by chapter markers
  • Section Extraction: Separate magazines by article titles
  • Content Organization: Split publications by content markers
  • Document Segmentation: Organize documents by text headings

Get Help​