Go to Page

Split a PDF into page groups

Split a PDF into page groups you define, where each group becomes one output document, in a Power Automate flow.

Use this action to split a PDF document into page groups that you define, where each group becomes one output PDF.

Split a PDF into page groups
ParametersSettingsCode viewTestingAbout
File Content
File Content
Groups
The groups to split into, for example 2..8,29;1
Split a PDF into page groups.

Parameters

File ContentFilerequired

The content of the input PDF document.

GroupsStringrequired

The groups to split into, separated by ; (semicolon). Within a group, pages and ranges are separated by , (comma). Each group becomes one output PDF, in written order. For example, 2..8,29;1 produces two PDFs: the first with pages 2 through 8 then 29, the second with page 1.

Response

This action returns a list of PDF documents. Add an Apply to each over the Documents output to process every part.

DocumentsArray

The output PDF documents, in order. Each item has:

  • File Name: the name of the PDF document (00001.pdf, 00002.pdf, and so on).
  • File Content: the content of the PDF document, which you can use as an input to other actions.