Copy link to clipboard
Copied
Hi, I need to set margins to a different value, and my line doesn't work:
myDoc.marginPreferences(MarginPreference.bottom =".125 in");
Thank you very much.
Yulia
Its working on InDesign CS5 MAC here.
Can you try with this
var myDoc = app.activeDocument;
for (var a=0; a<myDoc.pages.length; a++)
{
myDoc.pages.marginPreferences.bottom = ".125 in";
}
Shonky
Copy link to clipboard
Copied
If you want change bottom margin of your spread then you this code
myDoc.masterSpreads[0].pages[0].marginPreferences.bottom = ".125 in";
myDoc.masterSpreads[0].pages[1].marginPreferences.bottom = ".125 in";
MarginPreference is a property of pages and you using with document.
Shonky
Copy link to clipboard
Copied
It didn't work for me. It didn't give me errors on the first page, but didn't change the margins, and it was interrupted on the 2nd page.
Thank you for your help.
Yulia
Copy link to clipboard
Copied
Its working on InDesign CS5 MAC here.
Can you try with this
var myDoc = app.activeDocument;
for (var a=0; a<myDoc.pages.length; a++)
{
myDoc.pages.marginPreferences.bottom = ".125 in";
}
Shonky
Copy link to clipboard
Copied
It worked.
Thank you.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now