Go to Page

Split a PDF at a page

Split a PDF into two documents at a page boundary, in a Power Automate flow. No code to write, and no document is stored after the run.

Use this action to split a PDF document into two documents at a page boundary. The pages before the split page form the first part; the split page and everything after it form the second.

Split a PDF at a page
ParametersSettingsCode viewTestingAbout
File Content
File Content
Page
5
Split a PDF at a page.

This action is rolling out to the published PDF Blocks connector and may not appear in your environment yet. To use it today, import the connector from GitHub as a custom connector.

Parameters

File ContentFilerequired

The content of the input PDF document.

PageInteger Numberrequired

The page number that begins the second part. Must be between 2 and the number of pages in the document, so that both parts contain pages.

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.
  • Content Type: the media type of the document (application/pdf).