Go to Page

Rotate pages in a PDF

Rotate the pages of a PDF by a fixed angle, clockwise or counter-clockwise, in a Power Automate flow. Every page rotates unless the Pages field targets a subset.

Use this action to rotate one or more pages in a PDF document.

Rotate pages in a PDF
ParametersSettingsCode viewTestingAbout
File Content
File Content
Angle
Pages
The pages to rotate, as a comma-separated list of page numbers
Rotate pages in a PDF.

Parameters

File ContentFilerequired

The content of the input PDF document.

AngleInteger Numberrequired

The angle of rotation of the page or pages. Valid values are 0, 90, 180, 270, -90, -180, or -270. Positive numbers rotate clockwise. Negative numbers rotate counter-clockwise.

PagesString

The pages to rotate, as a comma-separated list of page numbers and ranges (for example 1..3,5). A negative number counts from the end, so -1 is the last page. Leave empty to rotate every page. This field is optional. Do not combine it with First Page / Last Page.

First PageInteger Number

The page number of the first page to rotate in the PDF document. This field is optional. The value is 1 or more. This is a legacy field kept for backward compatibility; prefer Pages, and do not combine it with Pages.

Last PageInteger Number

The page number of the last page to rotate in the PDF document. This field is optional. The value is 1 or more. This is a legacy field kept for backward compatibility; prefer Pages, and do not combine it with Pages.

Response

Rotated PDF File ContentFile

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