Actions21
- AI Actions
- Command Actions
- File Actions
- Metadata Actions
- PDF Actions
- Website Actions
PDF → Rotate PDF Pages
AI-generatedSummary
Rotate specified pages or page ranges in a PDF document by a given rotation angle.
Inputs
- Authentication (required) — Select the authentication method to connect to the CloudConvert API (OAuth2 recommended or API Key).
- Binary Input Data (required) — Toggle to indicate whether the input PDF file is provided as binary data in a specified binary property.
- Binary Property (required) — The name of the binary property containing the PDF file data (used if Binary Input Data is true).
- Input File Contents (required) — The text content of the input PDF file to upload (used if Binary Input Data is false).
- Pages — Specify single pages or page ranges to rotate, e.g. "1,2,5-7"; numbering starts at 1.
- Rotation — The rotation angle to apply to the specified pages, e.g. "+90", "-90", or "180".
Output shape
binary file with the rotated PDF
Returns the rotated PDF as binary data under the 'data' binary property. Result contains one output item per output file from CloudConvert. The rotation is applied per the specified pages and rotation angle parameters.
Examples
Example 1: Rotate pages 1, 2, and 5-7 by +90 degrees in a PDF file
Set 'Pages' to '1,2,5-7' and 'Rotation' to '+90', provide the input PDF file via binary data or text content as per 'Binary Input Data'.