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

Credit Count

This action consumes 1 credit per operation.

Note, different Encodian actions can consume different number credits. Please always check the action specific documentation and read What is an Encodian Action for a full description of how credits are consumed.

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

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.

Page Array - Example:

The following configuration will split the PDF document into three separate documents with the first document containing pages 2 to 4, the second document pages 7 to 19 and the last document pages 21 to 109. 

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). 

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:


 

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

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.

Credit Count

1 credit per pre-split document processed. For example:

Split a 2 page PDF into 2 PDFs = 1 credit
Split a 100 page PDF into 100 PDFs = 1 credit

 

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.
Powered by Zendesk