Tools API Blog
Sign in Create account

Rotate PDF pages

Rotate pages is an API that turns the pages of a PDF 90, 180 or 270 degrees, all of them or just the ones you pick. Great for fixing sideways scans from n8n, Make or Zapier, with no servers to maintain.

How it works

You send a PDF and a rotation angle, and get back the same PDF with its pages rotated. By default it rotates every page 90°, but you can choose the angle and just some pages. Nothing is stored: it's generated on the fly.

The rotation is added to whatever a page already had (if a page was already rotated 90° and you ask for another 90°, it ends at 180°): the intuitive "rotate it a bit more" behavior.

All you need

  • Your API key. Create it in your dashboard with "+ Create key". It's shown only once, so copy and save it.
  • In your automation platform, an "HTTP Request" step (n8n, Make, Zapier, Pipedream… all have one).

How to use it in n8n (step by step)

You send your PDF as is (as binary data) and get the rotated PDF back directly. In the HTTP Request node:

  • Method: POST
  • URL: https://api.cofferdock.com/pdf-rotate
  • Send Query Parameters: on, and add angle = 90 (and pages if you only want to rotate some, see the table).
  • Send Headers: on → add two: x-api-key = your key, and Content-Type = application/pdf
  • Send Body: on → choose the binary file option (in n8n: "n8n Binary File", with your PDF's binary property, usually data)
  • Under Options → Response → Response Format: choose File

The node's output is already the rotated PDF as a file: connect it straight to Drive, email, Telegram…

In Make (HTTP → Make a request module): same method and URL, add angle to Query String, the two headers in Headers, and the PDF as binary data in the body.

In short: POST to …/pdf-rotate, angle (and optionally pages) as Query Parameters, the x-api-key and Content-Type: application/pdf headers, the PDF as binary Body, Response Format as File.

Options (as Query Parameters)

OptionDefaultWhat it does
angle90Rotation in degrees: 90, 180 or 270 (0 is also valid and rotates nothing).
pagesallWhich pages to rotate, e.g. 1-3,5. Omit it to rotate the whole PDF.

What you get back

The rotated PDF itself, ready to save or send. (In JSON mode, the PDF comes in base64.)