Copy link to clipboard
Copied
I need to get my document pages to go the opposit way.
For example the first page has to be the last, and vice versa
how can I do that??
Copy link to clipboard
Copied
How many pages do you have? If it's not that many, just do it manually. Otherwise, this could probably be easily scripted.
Copy link to clipboard
Copied
Hi @hendy_5450 , It also can be done via Numbering & Section Options If you have many pages the sections can be scripted. You can try this script —ReverseNumbering.jsx:
Copy link to clipboard
Copied
Copy link to clipboard
Copied
/**
* Sets sections for reverse numbering
* @ return Void
*/
function reverseNumbers(){
var d = app.activeDocument;
var p = d.pages.everyItem().getElements();
var ds = d.documentPreferences.allowPageShuffle
d.documentPreferences.allowPageShuffle = false;
//Clear any existing sections;
var s = app.activeDocument.sections;
if (s.length > 1) {
s.itemByRange(1,s.length-1).remove();
}
var pn;
for (var i = 0; i < p.length; i++){
pn = p.length - i;
try {
d.sections.add({continueNumbering:false, pageStart:p[i], pageNumberStart:pn})
}catch(e) {}
};
d.documentPreferences.allowPageShuffle = ds;
}
app.doScript(reverseNumbers, ScriptLanguage.JAVASCRIPT, undefined, UndoModes.ENTIRE_SCRIPT, 'Reverse Numbers');
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Yes
Copy link to clipboard
Copied
Are you familiar with running scripts?
Has to be saved as plain text from a text editor with .jsx extension saved in:
Applications ▸ Adobe InDesign 20XX ▸ Scripts ▸ Scripts Panel
Should then show in your Scripts panel. Double-click to run
Copy link to clipboard
Copied
where do I put in this script?
Copy link to clipboard
Copied
At least on Windows - you can't upload scripts into Application samples - you need to put script into User samples folder.
The easiest way - open User scripts list, then on any script - right click and select Reveal in Explorer - Windows will open a new window with the folder - copy&paste your script there.
Or:
https://creativepro.com/how-to-install-scripts-in-indesign/
Copy link to clipboard
Copied
In your InDesign application folder
Applications ▸ Adobe InDesign 20XX ▸ Scripts ▸ Scripts Panel
Copy link to clipboard
Copied
Copy link to clipboard
Copied
it's giving me an error[image: image.png]
By @hendy_5450
You need to post through the website - replying to the email notification won't work.
Copy link to clipboard
Copied
I'm having an issue opening it
Make sure you Download the script—right click ReverseNumbering.jsx and choose Download.
If you cut and paste the code into a text application it has to be saved as plain text with .jsx extension—Rich Text will not work.
Copy link to clipboard
Copied
Or download the ME version of InDesign, which is designed to work with right-to left languages and has controls for story direction. Not sure if you can reverse an existing file with that, but I'd bet you could create a new one, set the binding direction to r-t-l and copy/paste your content.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
That's not really a problem if you need to reverse page order because you're working on something in Arabic or Hebrew. If that's the case, then using a version of InDesign that supports these writing systems is a no-brainer. I think that, no matter what you've done, we can walk you through getting it into a properly formatted RTL document.
But if you have some other reason to want to reverse page order, then getting one of these page-order-reversal scripts working is going to be your best bet.
Copy link to clipboard
Copied
I need the entire document to be reversed order - the last page to the first, and the first to the last.
Copy link to clipboard
Copied
I need the entire document to be reversed order - the last page to the first, and the first to the last.
By @hendy_5450
Will you then continue editing your document - or just for print / export?
Reversing just pages won't make it RTL "correct".
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
I need the entire document to be reversed order - the last page to the first, and the first to the last.
By @hendy_5450
You haven't explained WHY you need to do this...
There may be another way to get your desired result that is simpler.
Copy link to clipboard
Copied
Use a Midle East version. There you can change in document setup the binding from left to right.
Copy link to clipboard
Copied
I need to get my document pages to go the opposit way.
For example the first page has to be the last, and vice versa
By @hendy_5450
Why?
Copy link to clipboard
Copied
iam in a same scenario.. im doing a magazine (arabic).. so the pages must be reversed. (arabic books start from the back, as opposed to english)
Find more inspiration, events, and resources on the new Adobe Community
Explore Now