Split PDF

Overview

The 'Split PDF' flow action splits the PDF document provided into multiple separate PDF documents according to the 'Split Configuration' provided.

Example Flow

Please refer to the following article showcasing the 'Split PDF' power automate action: Split and Extract pages from a PDF Document with Power Automate

Default Parameters

The default 'Split PDF' flow action parameters are detailed below:

  • Filename: The filename of the source PDF document (including the file extension)
  • File Content: A Base64 encoded representation of the PDF document
  • Split by Type: Set the option for splitting the PDF Document
  • Split Configuration: Specify the relevant split configuration aligned to the 'Split by Type' option

mceclip1.png

Split by Type Options

The 'Split PDF' flow action provides three different options for splitting the PDF document:

  • NumberOfPages: Splits PDF documents by the number of pages specified.
  • PageArray: Splits PDF documents utilising the array configuration provided
  • BookmarkLevel: Splits PDF documents by the level of the bookmark (Table of Contents)

Number of Pages - Example:

The following configuration would split a PDF document into collections of 5 pages, i.e. a 20-page document would create 4 separate documents.

mceclip2.png

Page Array - Example:

The following configuration will split the PDF document into three separate documents with the first document containing pages 1 to 3, the second document pages 7 to 18 and the last document pages 19 to 20. 

mceclip3.png

Bookmark Level - Example:

The following configuration would split a PDF document into a separate document for each level 1 entry (and its contained pages) within the PDF documents bookmarks (Table of Contents). 

mceclip4.png

NOTE: A PDF document is split by pages only and not page content, i.e. if two sections were contained on the same page the result would provide two PDF documents with the same content. 

Advanced Parameters

The advanced 'Split PDF' flow action parameters are detailed below:

mceclip0.png
 

Return Parameters

The 'Split PDF' flow action returns the following data. 

Action Specific Return Values

  • Documents - The collection of PDF Documents created from the PDF document supplied
    Each document within the documents collection contains the following values:
  • Documents Filename - The filename of the file
  • Documents File Content - The file content of the file

Example Flow Configuration:

mceclip5.png

Standard Return Values

  • OperationId - The unique ID assigned to this operation.
  • HttpStatusCode - The HTTP Status code for the response.
  • HttpStatusMessage - The HTTP Status message for the response.
  • Errors - An array of error messages should an error occur.
  • Operation Status - Indicates whether the operation has been completed, has been queued or has failed.

 

Have more questions? Submit a request

1 Comments

  • 0
    Avatar
    Matthew Werner

    Thanks for the helpful article!  Quick question...when splitting a PDF (say a 3 page document) via a page array (i.e. [1-1], [2-2], [3-3]), would this count as 3 actions or 1?  This will help our team determine how many actions would need to be purchased.

Please sign in to leave a comment.
Powered by Zendesk