The endpoint accepts multipart/form-data request bodies with the folowing parameters:
file
Required
The content of the input PDF document.
angle
Required
The angle of rotation of the pages.
Positive angles rotate the pages clockwise. Negative angles rotate the pages counter-clockwise.
Valid values are 0, 90, 180, 270, -90, -180, -270
first_page
optional
Integer with the first page of the range to rotate in the PDF document.
The minimum value is 1
Defaults to the first page of the PDF document.
last_page
optional
Integer with the last page of the range to rotate in the PDF document.
The minimum value is 1
Defaults to the last page of the PDF document.
Returns
If successful, the call returns a response with Content-Type: application/pdf with the content of the PDF document with the selected pages rotated. Otherwise, this call returns an error.