PDF Blocks
PricingSupport
Start Free
Go to Page

Reorder the pages of a PDF

Rearrange the pages of a PDF document into a new order in your Power Automate flow.

Use this action to rearrange the pages of a PDF document into a new order. Pages left out are dropped, and a page listed more than once is repeated, so this action doubles as a combined extract-and-reorder.

Reorder the pages of a PDF
ParametersSettingsCode viewTestingAbout
File Content
File Content
Page Order
The desired page order, for example 3,1,2
Reorder the pages of a PDF.

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.

Page OrderStringrequired

The desired page order, as a comma-separated list of page numbers and ranges (for example 3,1,2). A range may run backwards, so 10..5 walks from page 10 down to page 5. A negative number counts from the end, so -1 is the last page. Pages left out are dropped; a page listed more than once is repeated.

Response

Reordered PDF File ContentFile

The content of the reordered PDF document. You can use it as an input to other actions in your flow.