Actions8
Rotate PDF
AI-generatedSummary
Rotate pages of a PDF document either by applying a uniform rotation to all pages or by specifying individual rotation degrees per page.
Inputs
- PDF Input Type (required) — Specify the input format of the PDF: either a publicly accessible HTTPS URL or Base64-encoded content.
- PDF URL (required) — Public HTTPS URL pointing to the PDF to rotate (required if PDF Input Type is URL).
- PDF Base64 (required) — Base64-encoded PDF content to rotate (required if PDF Input Type is Base64).
- Rotation Mode (required) — Choose between Global Rotation (same rotation applied to all pages) or Per-Page Rotation (individual page rotations specified).
- Rotation (required) — Degrees of rotation (0°, 90°, 180°, 270°) to be applied to every page when using Global Rotation mode.
- Page Rotations (required) — JSON map of 1-indexed page numbers to rotation degrees (0°, 90°, 180°, 270°), e.g. {"1": 90, "3": 180}, used when Rotation Mode is Per-Page Rotation.
- Options — Additional options including 'Expiration (Seconds)' to set how long the resulting PDF URL is valid (60-604800 seconds), and 'Filename' to set a custom filename for the resulting PDF without the .pdf extension.
Output shape
a single record
Returns a JSON object containing a URL to the rotated PDF. The URL's validity and output filename can be controlled via Options. If an error occurs, the workflow will display error information if configured to continue on failure.