Skip to content

Search WPDesignVault

Try "image", "json", "schema" or "contrast". Use arrow keys to move through results.

Developer Guides

Reorder, Rotate and Extract PDF Pages

Reordering, rotating, extracting and splitting each change a PDF differently. This guide explains when to use each, how to do it in Mac Preview or with qpdf on any system, and gives a tested page-range cheat sheet with text equivalents.

Reorder, rotate and extract PDF pages
On this page

A scanned contract with two pages upside down, a proposal with the pricing page in the wrong place, a 40-page report when the client needs only pages 12 to 15: these are four different jobs. Reordering, rotating, extracting and splitting each change a PDF in a different way, and picking the right one avoids redoing work. This guide explains each action and gives you a page-range cheat sheet you can reuse.

Short answer: to reorder PDF pages, drag page thumbnails into a new order and save a copy. To rotate, select the pages and turn them 90° at a time. To extract, create a new file from a page range such as 12-15. To split, break one file into several, for example one file per page or per chapter.

Four actions, four results

ActionWhat it changesResultTypical use
ReorderPage sequenceOne file, same pages, new orderMove pricing before terms
RotatePage orientationOne file, same orderFix sideways or upside-down scans
ExtractWhich pages are keptOne new file with selected pages; original unchangedSend only the relevant section
SplitNumber of filesSeveral files covering the originalOne file per invoice or chapter

Deleting pages is a fifth, related action: it’s an extract of everything except the pages you remove. Always work on a copy, because some apps save changes automatically.

Page ranges explained

Extracting and splitting usually ask for a page range. The syntax below is qpdf’s, documented in the qpdf manual. Commas and hyphens work almost everywhere; the extras such as z and r are specific to qpdf and some other tools, so check your tool’s help before relying on them.

PDF page-range cheat sheet showing qpdf syntax examples from 1,3,5 to 1-z:odd with their meanings
The same examples appear in the table below as text.
RangeSelects
1,3,5Pages 1, 3 and 5
2-6Pages 2 to 6, inclusive
zThe last page
r2The second-to-last page (r1 is the last)
8-zPage 8 to the end
z-1Every page in reverse order
1-10,x4Pages 1–10 except page 4
1-z:oddOdd positions in the selection (pages 1, 3, 5…)

Note that :odd and :even count positions in the selection, not original page numbers. 4-9:odd gives pages 4, 6 and 8.

Reorder, rotate and delete pages on a Mac

  1. Duplicate the PDF in Finder (File → Duplicate) and open the copy in Preview.
  2. Choose View → Thumbnails.
  3. Reorder: drag thumbnails to new positions.
  4. Rotate: select thumbnails and choose Tools → Rotate Left or Rotate Right.
  5. Delete: select thumbnails and press Delete.
  6. Extract: select the pages you need and drag them to the desktop, which creates a new PDF of just those pages.

Apple’s Preview guide covers moving pages between documents and warns that Preview saves automatically.

Do it with qpdf (Windows, macOS, Linux)

# Reorder: page 5 first, then 1-4, then the rest
qpdf report.pdf --pages . 5,1-4,6-z -- reordered.pdf

# Rotate pages 2 and 7 by 90° clockwise
qpdf scan.pdf --rotate=+90:2,7 -- rotated.pdf

# Extract pages 12-15 into a new file
qpdf report.pdf --pages . 12-15 -- section.pdf

# Split into one file per page (page-01.pdf, page-02.pdf ...)
qpdf report.pdf --split-pages page.pdf

# Split into files of 5 pages each (part-01-05.pdf, part-06-10.pdf ...)
qpdf report.pdf --split-pages=5 part.pdf

The . means “the input file”. Use +90 or -90 rather than a bare angle: the manual recommends relative rotation so already-rotated pages end up where you expect. Every command and range on this page was checked with qpdf 11.9.0 against a 20-page sample PDF.

Troubleshooting

  • Rotation “doesn’t stick”: some viewers only rotate the view. Save a copy, then reopen it to confirm.
  • Wrong pages extracted: page labels (i, ii, iii or printed page numbers) may differ from physical page positions. Ranges almost always use physical positions starting at 1.
  • Bookmarks point to the wrong place after reordering: outlines may not be updated. Check them and rebuild if needed.
  • Encrypted file: supply the password you’re entitled to; qpdf accepts --password=.

FAQs

What’s the difference between extracting and splitting a PDF?

Extracting produces one new file containing the pages you choose. Splitting produces several files that together cover the original.

Does reordering or rotating reduce quality?

No, when the tool copies pages rather than re-rendering them. Preview’s thumbnail editing and qpdf both keep page content as it is.

How do I select the last page without counting?

In qpdf, use z for the last page or r1; r2 is the one before it.

Can I rotate just one page?

Yes. Select that page’s thumbnail in Preview, or add a page range to qpdf’s rotate option, such as --rotate=+90:3.

Reorder and extract pages with our Organise PDF tool

Need to rotate upside-down scans, delete blank pages, or extract specific page ranges like 1-3, 5, 8-? Use our free in-browser Organise PDF tool to arrange pages visually and download your updated PDF or split to a ZIP package.

Aspect Ratio Calculator

Find the aspect ratio of any width and height, and calculate a new width or height that keeps…

Comprehensive guide and visual tutorial explaining fix json syntax errors for WordPress websites.
Developer Guides

How to Read and Fix JSON Syntax Errors

JSON looks simple until a single misplaced comma breaks an import, an API request or a configuration file. The good news is…

3 min read

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *