Stella
PDFs and Excel

Reorder the pages of a double-sided scan and remove the blanks

A 16-page jumbled contract scan put back as 13 pages in order, blank backs gone.

Download StellaFree with the plan you already have.

A real run on 13 November 2026, on a Linux computer, using Claude Code with Opus, on a Claude plan. The waiting is sped up; it took 4 min 38 s in real time.

The short answer.

Scan all the fronts and then the pile flipped over, and the PDF runs fronts 1, 3, 5 … then backs in reverse. To fix it, interleave: front 1, last page, front 2, second-to-last, and so on, then delete the blank backs. In Preview (Mac) drag thumbnails into place; on Windows, the free PDF24 Creator sorts pages offline. Stella (stella.sh) works out the order from the page numbers printed on each page, removes blanks even when they have scanner grain, and saves a new PDF.

Stella does this on Windows, Mac and Linux.

What happened.

Fixed in about 4½ minutes. Checked afterwards against an answer key written before the run: a new PDF with exactly 13 pages (the 3 blank backs removed), every page in reading order 1 to 13, and the original scan unchanged.

The kitchen-refit contract is fictitious, printed and “scanned” as images for this run. The work is sped up 19×.

How Stella does it.

  1. Finds the contract scan in Downloads: 16 sides, image only, with no text to select
  2. Reads the page numbers and headings on each scanned page to set the order, instead of relying only on how the pile was flipped
  3. Finds three blank backs that aren't pure white (scanner grain, an edge shadow, a dust speck) and checks them closely for writing, stamps or initials before removing them
  4. Saves “Kitchen contract (ordered).pdf” next to the original, which is unchanged
  5. Reports the result: Page 1 of 13 through Page 13 of 13, nothing missing or repeated, sections running in order

The prompt.

I scanned a double-sided contract on a scanner that only does one side, so I did all the fronts and then turned the pile over and did the backs. Now the PDF in my Downloads has the pages all out of order and some blank ones. Put the pages in the right order, take out the blank pages, and save it as a new PDF.

Paste it into Stella and press Enter.

This is the exact prompt from the recording. If your files are somewhere else, say where.

Do it yourself.

  1. Work out the pattern

    With 8 sheets, the file runs F1 F2 … F8 then B8 B7 … B1 (the pile was flipped). The right order is F1, B1, F2, B2 … So pages go 1, 16, 2, 15, 3, 14 and so on. Write that list down.

  2. On a Mac: Preview

    Open the PDF, View, Thumbnails. Drag pages in the sidebar into the order above. Click a blank page and press Delete. Then File, Export as PDF under a new name, so the scan stays as it was.

  3. On Windows: PDF24 Creator

    Install the free PDF24 Creator (it works offline) and open its Sort pages tool. Drag thumbnails into order, delete blanks, and save. Its Merge tool can also interleave two separate scans of fronts and backs.

  4. Check blank pages before deleting

    Zoom in on each “blank” back. Scanner shadows and dust are fine to remove; initials, a stamp or “this page intentionally left blank” on a contract may matter.

  5. Next time: scan as two files

    Scan fronts and backs as separate PDFs. Many tools (PDF24, Acrobat) have a merge that alternates pages and reverses the second file in one step.

Where it stops.

  • Here the order came from page numbers printed on each page. Pages without numbers are put back by the fronts-then-backs pattern, which assumes the pile went through in one go.
  • A blank page with faint marks is a judgement call. Stella checked each one up close; for legal documents, look at what was removed yourself.
  • Stella looked at the scanned pages to read their numbers, so page images go to the AI model you use. The new PDF is made on your computer.
  • Recorded on Linux with free PDF tools. On Windows or a Mac Stella uses the same kind of tool.

Questions.

How do I merge odd and even scanned pages into one PDF?

Interleave them with the even pages reversed: Acrobat's Combine and PDF24's merge have an option for it, or put them in order by hand in Preview.

How do I remove blank pages from a scanned PDF?

Delete them in Preview or PDF24 one by one. Automatic blank-page removal in scanner software often misses grainy pages or removes faint ones, so check.

Some pages are sideways too. Can that be fixed?

Yes: see rotate PDF pages. To make the scan's text searchable afterwards, make a scanned PDF searchable.

Can I split the PDF into separate documents afterwards?
Is Stella free for this?

Yes. Free with the ChatGPT or Claude plan you already have. Sign in with your ChatGPT plan, or use your Claude plan through Claude Code, and this task costs nothing extra. New accounts also get a small free trial of Stella’s own models.

Can I control what Stella changes on my computer?

Yes. Stella works on Windows, Mac and Linux with your own files and shows each step in the chat, so you can watch it and stop it at any point. Tell it what it may not do, as the prompts on these pages do (“don't delete anything without asking”). In the Downloads recording it deleted nothing until it was told to go ahead. It also refuses commands that would wipe a whole disk, your home folder or system folders.

Checked against these sources on 13 November 2026.

Stella