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

How to Reverse Pages Order in Acrobat Pro DC

Community Beginner ,
Jan 12, 2016 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...

TOPICS
Edit and convert PDFs

Views

42.0K

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
community guidelines

correct answers 2 Correct answers

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

Votes

Translate

Translate
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)

Votes

Translate

Translate
Community Expert ,
Jan 13, 2016 Jan 13, 2016

Copy link to clipboard

Copied

Do you not see it under the File menu?

Votes

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
community guidelines
Community Beginner ,
Jan 13, 2016 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>

Votes

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
community guidelines
New Here ,
Jul 10, 2016 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.

Votes

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
community guidelines
New Here ,
Mar 15, 2021 Mar 15, 2021

Copy link to clipboard

Copied

Just wanted to clarify how to insert script correctly:  via Acrobat Pro DC 2021
/* Reverse Page Order */for (var i = this.numPages - 1; i >= 0; i--) this.movePage(i); 

rjzietlow_0-1615831326242.png

 

 

Votes

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
community guidelines
Community Expert ,
Mar 15, 2021 Mar 15, 2021

Copy link to clipboard

Copied

Run the script in the console window, not in the document.

You'll find a tutorial on the console here:

https://www.pdfscripting.com/public/Free_Videos.cfm#JSIntro

 

 

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

Votes

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
community guidelines
Community Beginner ,
Feb 02, 2022 Feb 02, 2022

Copy link to clipboard

Copied

The menu was slightly different but I was able to get through this without much difficulty and it worked perfectly.  AWESOME!  Thanks for the guidance...

 

Eric

Votes

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
community guidelines
New Here ,
Sep 05, 2024 Sep 05, 2024

Copy link to clipboard

Copied

LATEST

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

Votes

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
community guidelines
New Here ,
Jul 10, 2016 Jul 10, 2016

Copy link to clipboard

Copied

nope.

Votes

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
community guidelines
Community Expert ,
Jul 10, 2016 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)

Votes

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
community guidelines
Community Beginner ,
Jul 13, 2016 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

Votes

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
community guidelines
Contributor ,
Dec 11, 2018 Dec 11, 2018

Copy link to clipboard

Copied

Thank you!

Votes

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
community guidelines
Engaged ,
Apr 02, 2019 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).

Votes

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
community guidelines
Community Expert ,
Apr 02, 2019 Apr 02, 2019

Copy link to clipboard

Copied

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

Votes

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
community guidelines
Engaged ,
Apr 04, 2019 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!!

Votes

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
community guidelines
New Here ,
Mar 26, 2020 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.

Votes

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
community guidelines
New Here ,
Jul 27, 2020 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! 

Votes

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
community guidelines
New Here ,
Sep 22, 2016 Sep 22, 2016

Copy link to clipboard

Copied

This worked for me, thanks!

Votes

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
community guidelines
New Here ,
Jan 11, 2017 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)

Votes

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
community guidelines
New Here ,
Jun 01, 2017 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)

Votes

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
community guidelines
New Here ,
Feb 07, 2018 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.

Votes

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
community guidelines
New Here ,
May 11, 2018 May 11, 2018

Copy link to clipboard

Copied

It works! Many thanks

Votes

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
community guidelines
Explorer ,
Jul 21, 2018 Jul 21, 2018

Copy link to clipboard

Copied

You are my HERO. BLESS YOU. THANK YOU. I owe you coffee. And a million dollars.

Votes

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
community guidelines
Engaged ,
Mar 03, 2019 Mar 03, 2019

Copy link to clipboard

Copied

Thank you so much Brahmanatha!

Your solution worked very well.

The old .sequ files that I could find on Internet, one way or the other they didn't work on Acrobat 2017

Again, many thanks indeed!

Votes

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
community guidelines
New Here ,
Mar 20, 2019 Mar 20, 2019

Copy link to clipboard

Copied

Excellent. Many thanks for this.

Votes

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
community guidelines