Español

Lee este artículo en español.

How to rotate PDF pages that come out upside down or sideways

A scanned PDF doesn't always come out with the right orientation. It happens mostly with:

The result: when you open the PDF, one or more pages come out upside down or sideways, and they need rotating before you send or file it. It's a small glitch, but it stands out: a contract with one sideways page makes whoever's reading it tilt their screen or their neck, and it makes the whole document look rushed.

Rotate only what needs it

Usually the problem only affects a handful of pages, not the whole document: page 7 scanned upside down, or the landscape table that snuck in between two portrait pages. With Rotate PDF Pages you choose which pages to rotate with pages (for example 2,7 or a range like 4-6); if you don't set anything, every page gets rotated. That way you don't have to touch the whole document for one crooked page, or export that page separately to rotate it in another program.

If the document comes from an automated flow (say, a scan that lands in n8n or Make every time a fax or a signed form comes in), this step can go straight into the flow: detect which pages need rotating and call the tool before filing or forwarding the PDF.

The angle: only 90, 180 or 270

The rotation (angle) only accepts multiples of 90: 0, 90, 180 or 270 degrees, and it defaults to 90. That's not an arbitrary choice by the tool: the PDF format itself stores each page's orientation as one of those four values, so there's no "rotate 15 degrees" that makes sense at the file level. Send any other value (45, 15, whatever) and the tool returns a 400 error instead of rounding it on its own, so you never end up with a page that's rotated "almost right" but not quite.

Watch out: the angle adds up, it doesn't set

This is what trips people up the most: angle doesn't fix the final orientation, it adds to whatever the page already had. If a page was already rotated 90° (say, because the scanner had already misoriented it) and you apply another 90°, you end up at 180°, not 90°. If you're not sure how much a page is already rotated, try 90° first and check the result before applying more.

FAQ

Can I rotate some pages and leave others as they are in the same call? Not in a single call: angle applies equally to every page you select with pages. If you need different angles for different pages (say, one page at 90° and another at 180°), make one call per group of pages that shares an angle: the output PDF from the first call can be sent straight back in as the input for the second.

What happens if I send angle=45? You get a 400 error. Only 0, 90, 180 and 270 are accepted; there's no automatic rounding to the nearest one.

How much does it cost to rotate a 40-page PDF? 1 call = 1 credit, no matter how many pages you rotate.

Is the output a straight PDF or JSON? It can be forced with output=pdf or output=json. By default, sending the raw PDF returns a PDF, and sending JSON returns JSON with the PDF as base64.

Try these tools

You'll find the full instructions for Rotate PDF Pages, with examples for n8n, Make and your own code. And if you don't have an account yet, you can create one for free.