Highlighted

How to Reverse Pages Order in Acrobat Pro DC

Community Beginner ,
Jan 12, 2016

Copy link to clipboard

Copied

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 by Brahmanatha | Community Beginner

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>

TOPICS
Edit and convert PDFs

Views

20.9K

Likes

Translate

Translate

Report

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

How to Reverse Pages Order in Acrobat Pro DC

Community Beginner ,
Jan 12, 2016

Copy link to clipboard

Copied

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 by Brahmanatha | Community Beginner

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>

TOPICS
Edit and convert PDFs

Views

20.9K

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Jan 12, 2016 7
Most Valuable Participant ,
Jan 13, 2016

Copy link to clipboard

Copied

Do you not see it under the File menu?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jan 13, 2016 0
Community Beginner ,
Jan 13, 2016

Copy link to clipboard

Copied

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>

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jan 13, 2016 6
New Here ,
Jul 10, 2016

Copy link to clipboard

Copied

If this used to work (I believe you), it doesn't work now because there is no "More Tools" in the "Choose Tools to add dialog box. This Javascript:

  for (var i = this.numPages - 1; i >= 0; i--) this.movePage(i);

is all well and good, but I can't find the place in the interface to put it. Did they delete "More Tools"? There is a "More Tools" under "Action", but it goes out to the web.

This seems like such a common, simple problem, why isn't there a solution built in to Acrobat? I am underwhelmed and over irritated at the complexity of the interface that initially gives one the illusion of simplicity.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jul 10, 2016 0
New Here ,
Jul 10, 2016

Copy link to clipboard

Copied

nope.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jul 10, 2016 0
Most Valuable Participant ,
Jul 10, 2016

Copy link to clipboard

Copied

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

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jul 10, 2016 4
New Here ,
Jul 13, 2016

Copy link to clipboard

Copied

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

Your custom-made script worked like a charm for me on latest Adobe Acrobat Pro DC 2015 Release.

Easy download of javascript and instructions clear for me using"/Applications/Adobe Acrobat DC/Adobe Acrobat.app/Contents/Resources/JavaScripts/ReversePagesOrder.js".

Thank you try67, saved me much angst and I am grateful for your work – can recommend.

Noel

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jul 13, 2016 1
Explorer ,
Dec 11, 2018

Copy link to clipboard

Copied

Thank you!

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Dec 11, 2018 0
Contributor ,
Apr 02, 2019

Copy link to clipboard

Copied

I am sure it is a wonderful script.

I have submitted my email address twice (one has to provide an email address in order to be able to download it from https://www.payloadz.com/d1/default.aspx?id=2749650 )

I did not receive anything though (checked my junk folder, nothing there either).

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Apr 02, 2019 2
Most Valuable Participant ,
Apr 02, 2019

Copy link to clipboard

Copied

Send me an email and I'll send it to you directly.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Apr 02, 2019 0
Contributor ,
Apr 04, 2019

Copy link to clipboard

Copied

Thank you very much indeed. Downloaded and installed the script. It works fine and very fast. Really super!

Again, many thanks!!

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Apr 04, 2019 0
New Here ,
Mar 26, 2020

Copy link to clipboard

Copied

Thanks very much try67 - this worked great. Downloaded the two files and placed in the required folder after ticking the right boxes in Adobe as suggested in your text file. Then started up the Adobe app and loaded in my file again. Searched for the tool and there it was - with figers crossed I clicked on the icon and sure enough the pages were in reverse order instantly. Very clear instructions and a really neat js file - Once again many thanks for the solution. Still amazed that such a fundamental task is not a standard feature.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Mar 26, 2020 0
New Here ,
Jul 27, 2020

Copy link to clipboard

Copied

Woww! Try67, your script worked amazingly! 

 

The only tip I would make more explicit in the instructions, is the first steps for newbies like myself to adding these features to Adobe. I had a hard time finding the correct JavaScript folder on my computer using Adobe DC using MacOS High Sierra. I also searched for "JavaScript" in the Finder search box for my whole computer but no such folder came up.

 

This worked:

 

1. In Finder, Go > Computer

2. MacIntosh HD > Applications > Adobe Acrobat DC.

3. Right-click on Adobe Acrobat program icon in the Adobe Acrobat DC folder, and select "Show Package Contents"

4. Contents > Resources > JavaScripts

5. Paste Gilad's (try67) file in the JavaScripts folder, AFTER reading the instructions on how to set up your JavaScript preferences in Adobe Acrobat, and closing Acrobat. (Both downloaded from http://try67.blogspot.com/2014/10/acrobat-reverse-page-order-free.html).

 

When I reopened Acrobat, it worked a charm!! I had a 250-page ancient Hebrew book scanned by an American university library the wrong way around.  A manual reordering would have taken me hours. Now I feel like a computer ninja. Thank you Gilad, and I'll send you a tip on PayPal now! 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jul 27, 2020 0
New Here ,
Sep 22, 2016

Copy link to clipboard

Copied

This worked for me, thanks!

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Sep 22, 2016 0
New Here ,
Jan 11, 2017

Copy link to clipboard

Copied

Thank you for this.

You just saved me a day!

Worked today on

Acrobat Pro DC

on MAC (OS 10.12.2)

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jan 11, 2017 0
New Here ,
Jun 01, 2017

Copy link to clipboard

Copied

Thanks... It works just as you said!

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 01, 2017 1
New Here ,
Feb 07, 2018

Copy link to clipboard

Copied

THANK GOODNESS!! You saved me hours. I had 100 pages backwards and now I'm golden. I bow to you.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Feb 07, 2018 1