v1
latestOpenAPI 3.1.02026-08-06244570.4 KBPDF Tools
Rotate pages of a PDF
Rotate every page by the same angle (rotation), or apply a per-page rotation map (page_rotations). Rotations are cumulative with the page's existing rotation. Allowed angles: 0, 90, 180, 270.
Credits: 1 credit per call.
post/v1/pdf-tools/rotate
Request body
Example request
{
"filename": "merged",
"pdf_url": "https://example.com/file.pdf",
"pdf_base64": "JVBERi0xLjQKJ...",
"rotation": 90,
"page_rotations": {
"1": 90,
"3": 180
}
}Response
Successful Response