Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
7

How to Reverse Pages Order in Acrobat Pro DC

Community Beginner ,
Jan 12, 2016 Jan 12, 2016

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...

TOPICS
Edit and convert PDFs
45.4K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
2 ACCEPTED SOLUTIONS
Community Beginner ,
Jan 13, 2016 Jan 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>

View solution in original post

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 10, 2016 Jul 10, 2016

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

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

View solution in original post

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 22, 2019 Jun 22, 2019

Thank You many many times. Brahmanatha, you are so great !!!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 05, 2020 May 05, 2020

The OP's answer worked for me. - Thank you for this, which should definitely be a built-in function!!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 12, 2020 Jun 12, 2020

THANK YOU THANK YOU THANK YOU!!!! CANNOT Thank you enough! have been searching ALL OVER the web for a solution & this is the only simple, easy to follow instruction that actually WORKED! 

Appreciate the info-sharing

- from 1 user to another

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 18, 2020 Jul 18, 2020

Thanks for solving this daunting problem. I had a 355 page manuscript that the pages were reversed. Without this help it would have been impossible to submit the work. The only problem I had understanding the above instructions was that you put "reverse page order" within the  \*   *\ space and type the java script on the line below. Muchas gracias. BTW, Adobe should be ashamed of themselves for not having this feature readily available. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 02, 2021 Sep 02, 2021

More tools - Action Wizzard - Action List - select reverse pages.  You will see a window pop up for you to reply to and there ya go!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines