Link in Zwischenablage kopieren
Kopiert
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??
Link in Zwischenablage kopieren
Kopiert
How many pages do you have? If it's not that many, just do it manually. Otherwise, this could probably be easily scripted.
Link in Zwischenablage kopieren
Kopiert
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:
Link in Zwischenablage kopieren
Kopiert
Link in Zwischenablage kopieren
Kopiert
/**
* 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');
Link in Zwischenablage kopieren
Kopiert
Link in Zwischenablage kopieren
Kopiert
Yes
Link in Zwischenablage kopieren
Kopiert
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
Link in Zwischenablage kopieren
Kopiert
where do I put in this script?
Link in Zwischenablage kopieren
Kopiert
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/
Link in Zwischenablage kopieren
Kopiert
In your InDesign application folder
Applications ▸ Adobe InDesign 20XX ▸ Scripts ▸ Scripts Panel
Link in Zwischenablage kopieren
Kopiert
Link in Zwischenablage kopieren
Kopiert
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.
Link in Zwischenablage kopieren
Kopiert
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.
Link in Zwischenablage kopieren
Kopiert
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.
Link in Zwischenablage kopieren
Kopiert
Link in Zwischenablage kopieren
Kopiert
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.
Link in Zwischenablage kopieren
Kopiert
I need the entire document to be reversed order - the last page to the first, and the first to the last.
Link in Zwischenablage kopieren
Kopiert
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".
Link in Zwischenablage kopieren
Kopiert
Link in Zwischenablage kopieren
Kopiert
Link in Zwischenablage kopieren
Kopiert
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.
Link in Zwischenablage kopieren
Kopiert
Use a Midle East version. There you can change in document setup the binding from left to right.
Link in Zwischenablage kopieren
Kopiert
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?
Link in Zwischenablage kopieren
Kopiert
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)
Weitere Inspirationen, Events und Ressourcen finden Sie in der neuen Adobe Community
Jetzt ansehen