Reorder pages using QuickFix

There are two new QuickFixes in pdfToolbox 13 to reorder pages:

QuickFix: Reorder pages

  1. Page selector: A page selector expression can be a list e.g. 1,2,3 or even a simple expression, e.g. 3--3 which will find all pages except the first and last two (last page being -1). It can even use more advanced syntax: e.g. *3 will select every third page. More info here.
  2. Relative to: 
    • first page in PDF OR
    • first page in selection OR
    • last page in selection OR
    • last page in PDF
  3. Page offset: The anchor point by which the selected pages are to be reordered
  4. Insert: 
    • Before OR
    • After
  5. Non consecutive selections:
    • Insert as consecutive pages: insert the selected pages as a block
    • Shift page structure: insert the selected pages keeping their original structure

Usage examples

Example 1: The below example shows the original PDF with 14 pages

  1. Page selector: *3(3) selects every third page in the document starting with the third page
  2. Relative to: 'first page in selection' which is page 3
  3. Page offset: set to -1 which brings the anchor point to page 2
  4. Insert: before, which means before page 2
  5. Non consecutive selections:
    • Insert as consecutive pages: inserts the selected pages (3,6,9,12) consecutively before the anchor point
    • Shift page structure: inserts the selected pages (3,6,9,12) keeping their original structure which means, for example: for the selected page 6, 'page offset' of -1 will bring the anchor to page 5 and 'insert before' would insert page 6 before page 5 

Example 2: The below example shows the original PDF with 14 pages

  1. Page selector: *3(3) selects every third page in the document starting with the third page
  2. Relative to: 'first page in selection' which is page 3
  3. Page offset: set to -4 which brings the anchor point to 2 pages before the first page
  4. Insert: before, which means before the anchor point
  5. Non consecutive selections:
    • Insert as consecutive pages: inserts the selected pages (3,6,9,12) consecutively before the anchor point
    • Shift page structure: inserts the selected pages (3,6,9,12) keeping their original structure which means, for example: for the selected page 6, 'page offset' of -4 will bring the anchor at page 1 anchor point and 'insert before' would insert page 6 before page 1

QuickFix: Invert page order

  1. Page selector: The page selector can be selected from the dropdown:
    • All pages
    • Even pages
    • Odd pages 
    • It can also be an expression which can be a list e.g. 1,2,3 or even a simple expression, e.g. 3--3 which will find all pages except the first and last two (last page being -1). It can even use more advanced syntax: e.g. *3 will select every third page. More info here.

Usage example

The below example shows the original PDF with 14 pages

  1. Page selector: *3(3) selects every third page in the document starting with the third page

Upon execution, the selected pages will be inverted.