Jan 10, 2009 5:49 PM
How to Reverse Page Order in Acrobat Pro 9
-
Like (0)
Worked like a charm! Thank you. ![]()
Frank
Here's the answer: Put this file in your Acrobat Javascipt Folder (C:\Program Files\Adobe\Acrobat 9.0\Acrobat\Javascripts) and start Acrobat. The Reverse option will be under the Document menu underneath Header&Footer. In case you do not want to download the script I have copied it below. Works like a charm.
app.addMenuItem({ cName: "Reverse", cParent: "Document", 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
Is there something in the code that only allows the menu item to be added in Acrobat 9? I have a user that will be needing this feature a lot in the very near future and adding this menu option would greatly help with an upcoming scanning project but I tried adding the script to correct directory on her system with Acrobat Standard 8 but I don't get anything on the "Document" menu or the "Document > Header & Footer" menu.
On my Acrobat 9 Professional installation using the script I get the menu option right on the "Document" menu.
Also, now I am being a little picky here but how would I get it further down on the list so that it is grouped with other "like" page commands?
This is a special thank you for solving a problem that has eluded me for too long.
I do appreciate it. So simple but so effective! (And I don't have a Macintosh)
Ed3618
Wow GQDiaz,
What a wonderful gift you have given us! You have saved me hours of shuffling pages one by one between large cumbersome document scans.
Your script works like a dream. Thank you for this gift.
With kind regards,
jaxios
Anyone have any idea where this script should be put on a Mac. I could really use this script!!
Thanks for writing it!
Found it:
a. WIN XP
C:\Documents and Settings\Administrator\Application Data\Adobe\Acrobat \9.0\JavaScriptsb. WIN VISTA
C:\Users\USERNAME\AppData\Roaming\Adobe\Acrobat\9.0\JavaScriptsc. MAC OSX
/Users/YOURUSER/Library/Application Support/Adobe/Acrobat/9.0_x86/ JavaScripts
How do you "run" the script? I got the box open, the script is in, so now what?
You must have a different version than me, I dont have that option. (I have cs4 Acrobat 9 Pro)
I ended up printing to PDF and selecting reverse page order there.
I have the exact same set up (on a Mac).
Printing Reverse Page order works, too. We mainly use the reverse page order option when we need to send the PDF itself to a customer.
It's been a while since I installed mine, but I think I remember tweaking the coding some myself to get it to show in the menu where I wanted it to show.
But in any case, it should show under the Document menu somewhere.
Ah, yes, I remember now, it used to show up under the Header & Footer in the Document menu. I changed the code to make it show directly under the Document menu.
Still beats me, I can't find it.
Are you on Mac or PC?
Admittedly, PC.
That still shouldn't be a problem, as long as you installed it in the right place.
I take back what I said about changing the code to make it fall in "the right place" in the menu. I am looking at my copy of the code right now, and I only changed the Menu Name for the command.
Here's what I have:
app.addMenuItem({ cName: "Reverse Page Order", cParent: "Document", 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
Here's a lo fi, non script method of printing reverse. You basically create a whole new pdf, the but the process shouldn't take more than 5 minutes. Extract all the pages in the document to somewhere you can find them. Be sure to add 0's before the extracted page numbers 1 through 9, this will keep them in order for the next step. Now go to File> Combine> Merge files into a Single PDF... Either find the extracted files in "Add Files..." or simply drag them into the window. Now click the "Name" tab on the top left and this will reverse the order of the pages. Press "Combine Files" and now you have a pdf in reversed order you can print. Hope that helps
Thank you so much!
I was able to get this to work in Acrobat Pro X for Mac by changing the following. Acrobat 10 did not have a drop down menu called "Document."
app.addMenuItem({ cName: "Reverse", cParent: "Document", cExec: "PPReversePages();", cEnable: "event.rc = (event.target != null);", nPos: 0
to
app.addMenuItem({ cName: "Reverse", cParent: "View", cExec: "PPReversePages();", cEnable: "event.rc = (event.target != null);", nPos: 0
superb!!!!!!........it worked.................
loovely
I'm having the same problem, and I can hardly make sense of the advice you've been given, so I'm just going to tell the recipient of my document to reverse the pages themself. That this is an advanced command that requires the use of scripts seems completely absurd to me, and just reinforces my total lack of interest in updating my old software. I have the trial version of Adobe Acrobat Pro X at the moment and as soon as I can go back to my dinosaur software (and get my serial codes, etc, since I'm traveling), I'll do so. Advanced functions are great, but it's really frustrating that the user side isn't taken into consideration more in the process of updating software.
It's been a year-and-a-half since this script was first posted, but it proved to be EXACTLY what I needed today. Thank you so much!
how i can use it in acrobat x in windows 7 64bit?
ich copied the scipt to C:\Program Files\Adobe\Acrobat 10.0\Acrobat\Javascripts an edited
app.addMenuItem({ cName: "Reverse", cParent: "Document", cExec: "PPReversePages();", cEnable: "event.rc = (event.target != null);", nPos: 0
to
app.addMenuItem({ cName: "Reverse", cParent: "View", cExec: "PPReversePages();", cEnable: "event.rc = (event.target != null);", nPos: 0
i tried too, to find the folder "C:\Users\USERNAME\AppData\Roaming\Adobe\Acrobat\10.0\JavaScripts" but the folder "JavaScripts" doesn't exist in C:\Users\USERNAME\AppData\Roaming\Adobe\Acrobat\10.0\
i created the folder an copied the script, but it still doesn't works.
regards
Flocci
This is an unreasonable (stupid is a better adjective) Adobe programming error which should be addressed by an Adobe automatic update. To date, Adobe is forcing its customers to waste a lot of valuable time attempting to seek a solution to this reverse page order problem. My situation: I converted a numbered 10-page Office 2007 Word document to an AA 9 Pro Extended PDF file, which produced all pages in reverse order. My fix: Print the PDF file again to a new PDF file, selecting "Reverse pages" in the print dialog box (this option was not available when first printing/converting the Word file to a PDF file). Result: reversed pages converted back to the correct page order.
Thanks so much, a huge help in a 38 page pdf
North America
Europe, Middle East and Africa
Asia Pacific
Copyright © 2011 Adobe Systems Incorporated. All rights reserved.
Use of this website signifies your agreement to the Terms of Use and Online Privacy Policy (updated 07-14-2009).