The Useful Thread

Out of context: Reply #155

  • Started
  • Last post
  • 1,673 Responses
  • dbloc0

    REVERSE PDF PAGE ORDER

    Put this file in your Acrobat Javascipt Folder (C:\Program Files\Adobe\Acrobat 9.0\Acrobat\Javascripts) and start Acrobat. The Reverse option will be under the Document menu underneath Header&Footer. In case you do not want to download the script I have copied it below. Works like a charm.

    http://forums.adobe.com/servlet/…

    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

View thread