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

Two pages first spread

Explorer ,
Jul 22, 2019 Jul 22, 2019

Copy link to clipboard

Copied

Hi,

I wanna create the first spread with two pages (one left and one right page) like this:

Screenshot 2019-07-23 at 00.11.39.png

I am trying to do this with the following code:

app.activeDocument.spreads.item(0).allowPageShuffle = false;

var newPage = app.activeDocument.pages.add(LocationOptions.BEFORE, app.activeDocument.pages.firstItem());

But it only creates the pages side by side like this (they stay both on the right side of the spread):

Screenshot 2019-07-23 at 00.11.18.png

How can I move the page to the other side to archive the result that I am looking for?

Thank you so muck in advance!

Best regards.

TOPICS
Scripting

Views

1.2K

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

Explorer , Jul 22, 2019 Jul 22, 2019

I found the answer.

I just added the following line to the code:

newPage.move(LocationOptions.BEFORE, app.activeDocument.pages.firstItem(), BindingOptions.LEFT_ALIGN);

Votes

Translate

Translate
Explorer ,
Jul 22, 2019 Jul 22, 2019

Copy link to clipboard

Copied

I found the answer.

I just added the following line to the code:

newPage.move(LocationOptions.BEFORE, app.activeDocument.pages.firstItem(), BindingOptions.LEFT_ALIGN);

Votes

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
Community Expert ,
Jul 23, 2019 Jul 23, 2019

Copy link to clipboard

Copied

Hi,

you will not make friends at the printing company with a page named "1" that is positioned left from the spine.

If your document has a spine, means: facing pages, just set value of startPageNumber of document.documentPreferences to an even number.

Regards,
Uwe

Votes

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
Explorer ,
Jul 23, 2019 Jul 23, 2019

Copy link to clipboard

Copied

LATEST

Hi Laubender,

Thank you for reminding me of that.

I just created a section on the new page number 1 and used this:

app.activeDocument.sections[1].continueNumbering = false;          

app.activeDocument.sections[1].pageNumberStart = 1;

Regards.

Votes

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