Copy link to clipboard
Copied
Hi,
I am using InDesign server 2021, I would like to ask if there is a form to add a page at the first position instead that at the end of the pages on the scripts.
doc.pages.add()
I tried using the parameters of the method, but seems more like positioning the element instead of setting the position on the array.
Do you know any form to set it at the first position?
I also have another question, what is the difference between document.recompose() and book.synchronize()?
Thanks for the help
Did you try:
doc.pages.add(LocationOptions.AT_BEGINNING);
Copy link to clipboard
Copied
Did you try:
doc.pages.add(LocationOptions.AT_BEGINNING);