• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers

Add page as first

New Here ,
Apr 28, 2022 Apr 28, 2022

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

TOPICS
Scripting , SDK

Views

72

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Apr 28, 2022 Apr 28, 2022

Did you try:

 

doc.pages.add(LocationOptions.AT_BEGINNING); 

 

 

Likes

Translate

Translate
Community Expert ,
Apr 28, 2022 Apr 28, 2022

Copy link to clipboard

Copied

LATEST

Did you try:

 

doc.pages.add(LocationOptions.AT_BEGINNING); 

 

 

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines