Skip to main content
Known Participant
Oct 27, 2024 1:58 PM UTC
Question

"doc.adjustLayoutPreferences.enableAutoAdjustMargins = true" does not work

I try to adjust document. Before it I set adjustLayoutPreferences:

 

doc.adjustLayoutPreferences.enableAdjustLayout = true;
doc.adjustLayoutPreferences.enableAutoAdjustMargins = true;
doc.adjustLayoutPreferences.allowFontSizeAndLeadingAdjustment = true;
doc.adjustLayoutPreferences.allowLockedObjectsToAdjust = true;

doc.adjustLayout({width: "1200px"});
 

 

After this I got new page size and new font sizes, BUT old margins.

Is it an error in InDesign?

This topic is closed to new replies. Start a new post to keep the conversation going.

21 replies

Robert at ID-Tasker
Legend
Oct 27, 2024 2:55 PM UTC

This will change only general settings of your document - won't edit Masters. 

 

Translate
Known Participant
Oct 27, 2024 4:27 PM UTC

I'm running it on a document without a master page.

Translate
Robert at ID-Tasker
Legend
Oct 27, 2024 4:33 PM UTC

There are always Master Spreads / Pages. 

 

Translate