Organize

Rotate & Reorder PDF Pages

My mother scanned a 30-page health insurance claim form last year. The scanner decided to orient every other page sideways. Some pages were upside down. None of this was obvious on the scanner's tiny preview screen. She discovered the problem when the insurance portal rejected the upload for "unreadable orientation."

Fixing it took two minutes once we knew which tool to use. This article covers the two most common scan-cleanup tasks: rotating pages and putting them back in order.

What's in this guide

  1. Why scans get rotated
  2. Rotating pages
  3. Reordering pages
  4. A cleanup workflow
  5. FAQ

Why scans get rotated

Scanners have an orientation sensor that works by detecting where the "top" edge of a page is against the feeder. This works well for a clean, single-orientation stack. It fails in a few common situations:

  • Mixed orientation stacks. Portrait and landscape pages in the same feeder confuse the sensor.
  • Thin or dark paper. The sensor can't reliably detect the page edge.
  • Duplex scanning. The back side is often oriented differently from the front.
  • Photos taken on a phone. The phone's orientation can shift during a multi-shot document scan.
  • Stapled or folded originals. The scanner's page sensor gets confused by the physical distortion.

The result is a PDF where some pages are rotated 90° or 180° from the rest. If the recipient's PDF reader doesn't auto-rotate, the document looks broken.

Rotating pages

Rotation in a PDF is metadata, not content. The page itself isn't re-rendered — the file records "when displaying this page, rotate it 90° clockwise." This is important because it means:

  • Rotation is lossless. No quality reduction.
  • Rotation is instant. No re-rendering.
  • Rotation is reversible. Rotating 90° then 270° gets you back.
  • Rotation is per-page. You can rotate some pages and not others.

The rotation value is stored in the page's /Rotate dictionary entry, in degrees. Values must be multiples of 90.

How to rotate in DSPDF

  1. Open the Rotate PDF tool.
  2. Drop your PDF. Thumbnails appear.
  3. Click the pages that need rotating (or use "Select all").
  4. Click 90° left, 90° right, or 180°.
  5. Repeat as needed for different pages.
  6. Click "Apply & Download".

If you rotate a page by mistake, click the same direction button in reverse. Or start over — the original file is never modified.

When rotation doesn't work

Some scanned PDFs have the rotation baked into the image itself — the page is set to portrait, but the scanned image is stored sideways. In that case, rotating the page metadata won't help; the image is still sideways, just rotated at the page level. Fixing this requires re-encoding the image, which is more involved.

How to tell: if you rotate 90° and the result looks correct at first glance but printing re-orients it back, the rotation is baked in. Our tool can't fix this case. A desktop image editor or a proper scanning app can.

Reordering pages

Reordering is a harder operation than rotating because it means restructuring the PDF's page tree. Most PDF tools that "reorder pages" actually do this by creating a new PDF and copying pages in the new order.

DSPDF's PDF Editor doesn't currently offer per-page reordering as a standalone operation, but you can achieve it with two other tools:

Method: extract in the desired order

  1. Split the PDF into individual pages (or into small groups).
  2. Rename them to indicate the desired order.
  3. Merge them back in the order you want.

This works but is tedious for large documents. It's fine for a 5-page fix, less so for 200 pages.

Method: for small documents, use the editor

Load the PDF into the PDF Editor. If you need to move a page, extract it, save, then merge it back at the right position. The editor's strength is adding content, not restructuring the file.

We've documented reordering as a "planned" feature for a future tool update — it requires deeper PDF tree manipulation than pdf-lib currently exposes conveniently.

A cleanup workflow

For a poorly scanned document, the sequence that works best:

Step 1: Preview all pages

Open the PDF and page through it quickly. Note which pages need rotating. It helps to write down the page numbers on a scrap of paper or a notes app.

Step 2: Rotate in one pass

In the Rotate PDF tool, click all pages that need the same rotation, apply, download. Then repeat for pages needing a different rotation.

Rotating in multiple passes is fine — each pass is a new file. Keep the intermediate files until the final one looks right, in case you made a mistake.

Step 3: Compress if size matters

After rotation, the file size is unchanged (since rotation is metadata). If the recipient has a size limit, run through Compress PDF — but be aware that compression rasterizes pages, which converts text to images. For a scan, this is fine (it was already image content). For a text PDF, think twice.

Step 4: Verify and send

Open the rotated file one more time. Page through it. Confirm every page is correct. Then send.

FAQ

Does rotating reduce quality?

No. Rotation is a metadata change, not a re-render. Content is untouched.

Can I reorder PDF pages?

Not directly with the rotate tool. Use extract + merge, or wait for a dedicated reorder tool. For most cases extract + merge works fine.

Why does my rotation not stick?

If the source image is stored sideways (not the page), rotation of the page doesn't fix it. The visual content stays sideways. This happens when scans are done in the wrong mode.

Can I rotate just the last page?

Yes — click only the last thumbnail and apply rotation. Or select multiple pages with Ctrl+click (depending on the tool).

Does rotating a password-protected PDF work?

Not until you unlock it. Unlock first with the password you know.

Try it yourself: DSPDF Rotate PDF lets you select pages individually, rotate in 90° increments, and download — with quality preserved.