Rotate PDF pages
Rotate PDF pages with an easy-to-use REST API.
Basic page rotation
The PDF page rotation tool can be used in a pipeline via a rotate-pages task.
The options parameter allows you to specify which pages you want to rotate, based on their indexes.
You can specify a rotation of one of the following values:
- 0
- 90
- 180
- 270
Range page rotation
You can rotate multiple pages in a single statement by specifying a range rather than a list of indexes.
Target pages with a certain orientation
The rotation tool allows you to target pages that currently have a certain orientation, allowing you to target them without knowing their indexes.
Multiple rotation instructions
You can define several rotation instructions.
The instructions are executed in the order given in the pages parameter. That means that if you give multiple rotation instructions, rotation instructions based on the current pages rotation may depand on the previous instructions.