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...
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
You can use this free script I've developed. It comes with detailed installation instructions.
Custom-made Adobe Scripts: Acrobat -- Reverse Page Order (FREE)
Copy link to clipboard
Copied
Do you not see it under the File menu?
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
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>
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.
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);
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
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
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
nope.
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)
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
Copy link to clipboard
Copied
Thank you!
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).
Copy link to clipboard
Copied
Send me an email and I'll send it to you directly.
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!!
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.
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!
Copy link to clipboard
Copied
This worked for me, thanks!
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)
Copy link to clipboard
Copied
Thanks... It works just as you said!
I'm on a Mac with Acrobat DC Pro (2017.009.20044)
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.
Copy link to clipboard
Copied
It works! Many thanks
Copy link to clipboard
Copied
You are my HERO. BLESS YOU. THANK YOU. I owe you coffee. And a million dollars.
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!
Copy link to clipboard
Copied
Excellent. Many thanks for this.