Resizing Text frames on Master pages based on new margin settings
Hello All,
I am developing a C++ plugin on InDesign Server 2026, where I need to resize the margins on the Master Pages. And based on new Inside / Outside margin values need to adjust the text frames (left and right ) on the master page. I tried adjusting through C++ functions like SetPathBoundingBox() / SetStrokeBoundingBox() / Utils<Facade::IGeometryFacade>()->SetItemsBounds().
We noticed the text frame does not resize correctly. it leaves spaces either on Left or Right side.
I also tried calling java script to use the option AutoAdjustLayout which is on Margins dialog.
var mydoc = app.documents.item(0);
var myadjustprefs = mydoc.adjustLayoutPreferences;
myadjustprefs.enableAdjustLayout = true;
This does set the option as selected but does not reflect the text frames.
Has anyone tried this. Any advice or help would be really helpful.
Thanks & Regards
Farzana.
