Skip to main content
New Participant
January 13, 2016
Answered

How to Reverse Pages Order in Acrobat Pro DC

  • January 13, 2016
  • 14 replies
  • 46094 views

Old problem but the Javascripts out there are not working for me and the whole implementation of scripts in Acrobat Pro DC has become more difficult.

I get books that are scanned back to front so the PDF has page 300 of the book as page 1 of the PDF and page 300 of the PDF is page 1 of the book

I just need to select all pages and reverse their order. But this does not seem to be an option in any of the tools for editing, organizing pages.

The Javascripts out there used to add a menu item under the "Documents" menu:

app.addMenuItem({ cName: “Reverse Page Order”, cParent: “File”, 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

but I find no means to run this script...

Correct answer try67

You can use this free script I've developed. It comes with detailed installation instructions.

Custom-made Adobe Scripts: Acrobat -- Reverse Page Order (FREE)

14 replies

Grim Up North
New Participant
June 1, 2017

Thanks... It works just as you said!

I'm on a Mac with Acrobat DC Pro (2017.009.20044)

michaelm98633755
New Participant
January 11, 2017

Thank you for this.

You just saved me a day!

Worked today on

Acrobat Pro DC

on MAC (OS 10.12.2)

garyr56228103
New Participant
September 22, 2016

This worked for me, thanks!

try67
Community Expert
January 13, 2016

Do you not see it under the File menu?

New Participant
January 13, 2016

NO... I went to

~Users/MyDrive/Application Support/Adobe/Acrobat

and there was no "JavaScript" folder there... I made one, put in the script and restarted Acrobat:  "Nada" nothing.

So back to the web and search:  I found this solution which does work;

In Acrobat Pro DC  Go to

  1. Tools --> [scroll all the way down] -->
  2. Customize -->
  3. Action Wizard -->
  4. New Action --> [Scroll down under left panel "Choose Tools to add: -->
  5. More Tools -->
  6. Execute JavaScript -->
  7. the new action will appear on the right panel -->
  8. Set your defaults: I left it on  -- Files to be Processed --> Currently open file as default"
  9. Under the "Execute Javascript" click on -->
  10. Specify Settings   (Why doesn't it say "Enter Your Script" ??)
  11. another panel opens... paste in this script:
  12.     for (var i = this.numPages - 1; i >= 0; i--) this.movePage(i);
  13. click OK to close and then save the action...
  14. You will be prompted to name the action,
  15. name it " Reverse Page Order"  and save..
  16. Now new action appears in the action wizard Actions List "Reverse Page Order" 

it works!

<mini-rant>

IMHO older versions of Acrobat had a scripts menu at the top of the screen, over on the right, totally accessible.

Of course if you were not "into" JS you could just ignore it... but if you *do* use scripts it was not buried.

This new UX is one of the worst possible scenarios imaginable.

Perhaps the Acrobat team lost it's top UX people?

</mini-rant>

New Participant
September 6, 2024

THIS WORKED PERFECTLY!! Thank you, Brahmanatha!! And it looks like now that the "Reverse Order Page" option has been added, I CAN DO IT AGAIN AND AGAIN!!  My VERY Best to you! Stuart