http://forums.adobe.com/thread/300586
- Open Notepad (or a Mac equivalent if you are a Mac user) copy and paste in the code at the bottom of this post.
- Save the file as Reversepageorder.js.
- Copy the file to C:\Program Files (x86)\Adobe\Acrobat 9.0\Acrobat\Javascripts, or wherever your Acrobat Javascripts folder is. You may need an administrator password
- Close and reopen Acrobat Professional
- Document>Reverse
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