Skip to main content
Inspiring
May 21, 2025
Question

pages needed in opposite order

  • May 21, 2025
  • 7 replies
  • 1038 views

I need to get my document pages to go the opposit way.

For example the first page has to be the last, and vice versa

how can I do that??

7 replies

Community Expert
June 4, 2025

@hendy_5450 asked: " … 

For example the first page has to be the last, and vice versa

how can I do that??"

 

Hi @hendy_5450 ,

if your aim with InDesign is to export the pages to PDF in opposite order for e.g. a document with 12 pages, you can change the range in the PDF export dialog with:

12,11,10,9,8,7,6,5,4,3,2,1

instead of using the all pages default.

 

You could also use absolute page numbering in the PDF export dialog if your document starts with a different page name and/or has various sections with different page start numberings. For absolute page numbering the scheme is to use page positions with a + in front of the number like that exports a PDF in reverse order:

 

+12,+11,+10,+9,+8,+7,+6,+5,+4,+3,+2,+1

 

12th page in the document is first, first page in the document is last.

 

Regards,
Uwe Laubender
( Adobe Community Expert )

 

 

Anantha Prabu G
Legend
June 3, 2025

Hi @hendy_5450 

 

Try this code:

 

if (app.documents.length === 0) {
    alert("No document is open.");
} else {
    var doc = app.activeDocument;
    var originalPages = [];

    // Lock all page references before moving anything
    for (var i = 0; i < doc.pages.length; i++) {
        originalPages.push(doc.pages[i]);
    }

    app.doScript(function () {
        for (var i = originalPages.length - 1; i >= 0; i--) {
            // Always move the page to the end of the document
            originalPages[i].move(LocationOptions.AFTER, doc.pages[-1]);
        }
    }, ScriptLanguage.JAVASCRIPT, undefined, UndoModes.ENTIRE_SCRIPT, "Reverse Page Order");
}
Thanks,PrabuDesign smarter, faster, and bolder with InDesign scripting.
rob day
Community Expert
Community Expert
June 3, 2025

Hi @Anantha Prabu G , I think @hendy_5450  asked the same question here:

 

https://community.adobe.com/t5/indesign-discussions/pages-in-opposite-order/m-p/15333566#M625716

 

They are trying to get reverse auto page numbering (not move the pages)?

Willi Adelberger
Community Expert
Community Expert
May 23, 2025

Install a ME version (it is included in the CC) and change the binding to right in the document setup.

JR Boulay
Community Expert
Community Expert
May 23, 2025

[MOVED TO THE INDESIGN DISCUSSIONS]

Acrobate du PDF, InDesigner et Photoshopographe
try67
Community Expert
Community Expert
May 21, 2025

I created a simple, free tool that will do it for you with a single click:

https://www.try67.com/tool/acrobat-reverse-page-order-free

 

Inspiring
May 22, 2025

why can't i use the script?

 

try67
Community Expert
Community Expert
May 22, 2025

Because that's not Acrobat... InDesign, maybe?

JR Boulay
Community Expert
Community Expert
May 21, 2025

Use this script in the JavaScript console:

var t = app.thermometer;
t.duration = this.numPages;
t.begin();
for (i = this.numPages - 1; i >= 0; i--)
{
t.value = (i-this.numPages)*-1;
this.movePage(i);
t.text = 'Moving page ' + (i + 1);
}
t.end();

 

Acrobate du PDF, InDesigner et Photoshopographe
Inspiring
June 3, 2025
where do I enter this script?
Inspiring
June 3, 2025

it worked in acrabat, but it's not working in indesign

 

 

Community Manager
May 21, 2025

Hi @hendy_5450 ,

Thank you for reaching out. This is possible if you have access to Adobe Acrobat Pro; there is a feature called "Organize Pages", Please visit this help document: https://adobe.ly/4j7kC4R

To manipulate pages in a PDF, ensure that you have permission to edit the PDF. Select Document properties from the hamburger menu  (Windows) or File menu in macOS, then select the Security tab in the dialog. Review your permissions for the document under Document Restrictions Summary.

Renumber pages in a PDF

The page numbers on the document pages don't always match the page numbers that appear below the page thumbnails and in the right Page Navigation toolbar. Pages are numbered with integers, starting with page 1 for the first page of the document. Because some PDFs may contain front matter, such as a copyright page and table of contents, their body pages may not follow the numbering shown in the right Page Navigation toolbar.

 

You can specify various numbering styles for a group of pages, for example, 1, 2, 3, or i, ii, iii, or a, b, c. You can also customize the numbering system by adding a prefix. For example, pages in Chapter 1 can be 1-1, 1-2, 1-3, and so on. Chapter 2 can have pages numbered as 2-1, 2-2, 2-3, and so on.

 

Note: 

Using the Number Pages command affects only the page thumbnails on the Pages panel. Using the headers and footers feature, you can physically add new page numbers to a PDF.

  1. Select All tools from the global bar. Then select Organize pages > Page labels.
  2. Specify a page range. (Selected implies pages selected in the Page Thumbnails panel.)
  3. Select one of the following, and then select OK:

 




~Tariq