Reversing Page Order in Adobe Acrobat

Here is a very useful trick that I found today and want to share.

Create a file called “Reversepageorder.js” your Acrobat Javascipt Folder (C:Program FilesAdobeAcrobat 9.0AcrobatJavascripts).  Put the following in it:

app.addMenuItem({ cName: “Reverse”, cParent: “Document”, cExec: “PPReversePages();”, cEnable: “event.rc = (event.target != null);”, nPos: 0

});
function PPReversePages()
{
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();
}// JavaScript Document

 

Restart Acrobat.

The Reverse option will be under the Document menu.