Actions42
- Bulk Render Actions
- Document Actions
- Document Tool Actions
- File Actions
- Render Actions
Document Tool → Rotate Pages
AI-generatedSummary
Rotate specified pages of a PDF by a given angle.
Inputs
- fileId (required) — ID of the file uploaded via the File resource. Use File > Upload to get a file ID.
- pages (required) — Comma-separated page specifications to rotate (e.g.
- angle (required) — Rotation angle: 90, 180, or 270 degrees.
- waitForCompletion — Whether to wait for the tool job to complete before returning
- downloadOutput — Whether to automatically download the output file as binary data after completion
Output shape
{ json: responseData, pairedItem: { item: i } }
If waitForCompletion is true and downloadOutput is true, returns binary data of the rotated PDF; otherwise returns the API response JSON.
Examples
Example 1: Rotate pages 1 and 3 of a PDF by 90° and wait for completion
Set fileId to the uploaded file's ID, pages to
Example 2: Rotate all pages of a PDF by 180° without waiting
Set fileId, pages to
Example 3: Download the rotated PDF immediately after rotation
Set fileId, pages, angle to 90, and set both waitForCompletion and downloadOutput to true.