Skip to main content
Participating Frequently
February 16, 2023
Question

Adjust Layout Options--retain object adjustment but lock ruler guides in place

  • February 16, 2023
  • 4 replies
  • 1261 views

Hello, all! Is there a way in CC22 to change the Adjust Layout options? I need this tool enabled so that text frames automatically resize to fit the margins when margins are changed, but I do not want the ruler guides I've set to move proportionally (or at all, even a little) when the margins are changed. Thanks!

This topic has been closed for replies.

4 replies

rob day
Community Expert
Community Expert
February 17, 2023

You could capture the positions of all the guides, adjust the layout, and reset the guides via a script. Here’s an example:

 

 

//the adjusted width and height
var la = {width:"6in", height:"9in"}

var doc = app.activeDocument;
//save the curent guide locations
var odg = doc.guides.everyItem().location
//setup the desired layout adjustment preferences
doc.adjustLayoutPreferences.properties = {
    allowFontSizeAndLeadingAdjustment:false, 
    allowLockedObjectsToAdjust:true, 
    enableAdjustLayout:true, 
    enableAutoAdjustMargins:true,
    imposeFontSizeRestriction:false}
doc.adjustLayout(la)

//set the guides to their old positions
var ndg = doc.guides.everyItem().getElements()
for (var i = 0; i < ndg.length; i++){
    ndg[i].locked = false;
    ndg[i].location = odg[i]
}; 

 

Barb Binder
Community Expert
Community Expert
February 17, 2023

Hi Eugene:

 

Again, I could be misunderstanding, but Adobe uses the word objects to refer to frames (text, graphic and unassigned), and guides to refer to guides. 

 

~Barb

~Barb at Rocky Mountain Training
Community Expert
February 17, 2023

I still think it's a bug - if something is locked it shouldn't move. That's my understanding of it.

 

Community Expert
February 17, 2023

Either way report as a bug or a feature request.

 

Barb Binder
Community Expert
Community Expert
February 17, 2023

Perhaps I'm misreading this, but this helpx file seems to indicate this is a feature, not a bug. 

 

~Barb

 

https://helpx.adobe.com/indesign/using/adjust-layout.html

~Barb at Rocky Mountain Training
Community Expert
February 17, 2023

Yes - it's true that is the case. But if you lock them they should not move. 

There's is the option to adjust locked objects and it seems counter-intuitive. 

Surely if they're locked they shouldn't move when you select the option.

Community Expert
February 16, 2023

You can lock your guides

 

 

And the at the bottom untick the option to adjust locked items

 

 

 

Participating Frequently
February 16, 2023

Aha! Now that you've written it out for me it sounds so obvious hahaha. Thanks so much!

Participating Frequently
February 16, 2023

Oop, I replied to this before thoroughly testing. This makes absolute sense, except it does not work. Maybe a bug in CC22? The guides still move when they have been locked and Adjust Locked Content is deselected.