Skip to main content
Participant
October 22, 2024
Question

How to Automatically Reformat a Japanese Book to Spanish Reading Order

  • October 22, 2024
  • 1 reply
  • 202 views

Good morning, is it possible to automatically or with scripts change the order of a Japanese book to, in this case, Spanish, that is, so that the last pages of the Japanese book are the first in Spanish in the reading order, without doing it by moving the pages one by one? Thank you very much.

 

 

<Title renamed by MOD>

This topic has been closed for replies.

1 reply

John D Herzog
Inspiring
October 22, 2024

It is possible with scripts. I would think that you would need to use the page.move() method on each page.

John D Herzog
Inspiring
October 22, 2024
let inDesign = require("indesign");
const LocationOptions = require("indesign");
let app = inDesign.app;
var doc = app.activeDocument;
var pages = doc.pages;
for(x = 0; x < pages.length; x++){
pages.item(x).move(LocationOptions.AT_BEGINNING,doc.pages.item(-1));
}