Stirling PDF icon

Stirling PDF

Merged API: Stirling PDF - Processing API + Stirling PDF - Management API + Stirling PDF - System API

Actions260

General → Rotate PDF

AI-generated

Summary

Rotate all pages in a PDF file by a specified clockwise angle in multiples of 90 degrees.

Inputs

  • Input Binary Field Name (File Input) — Name of the binary property that contains the PDF file data to be rotated; defaults to 'data' if not specified.
  • File Id — ID of a previously uploaded PDF file stored on the server to rotate, usable instead of providing binary file input.
  • Angle (required) — The clockwise rotation angle to apply to every page in the PDF; must be one of 0, 90, 180, or 270 degrees.

Output shape

a binary file containing the rotated PDF

The rotated PDF is returned as binary data under the same binary property name as the input. If batching is enabled via requestOptions, multiple PDFs can be processed in succession.

Examples

Example 1: Rotate an uploaded PDF file 90 degrees clockwise by providing its File Id.

Set the File Id parameter and choose 90 for the Angle, leaving binary input empty.

Example 2: Rotate an incoming PDF binary file 180 degrees clockwise.

Provide the binary property name holding the PDF file and set Angle to 180.

Links

Discussion