Hi Manid@SRMI , Is this an AI generated script? AI likes to make up methods.
Not sure if this helps, but there is an adjustLayout() method which handles some layout adjustments:
var doc = app.activeDocument;
//width and height parameters take points
doc.adjustLayout({width:800, height:800,leftMargin: 20, rightMargin: 20, topMargin: 20, bottomMargin: 20, bleedTop:30, bleedBottom:30, bleedInside:30, bleedOutside:30})
Before and after:
... View more