Hi. Here is another solution, applied margin to also Master Spread. var doc = app.documents.add();
doc.marginPreferences.properties = {top:0,right:0,bottom:0,left:0};
// this part doesnt work??
// var mst_page = doc.masterSpreads[0].pages.everyItem();
// mst_page.marginPreferences.properties = {top:0,right:0,bottom:0,left:0};
var mst_page_1 = doc.masterSpreads[0].pages[0];
mst_page_1.marginPreferences.properties = {top:0,right:0,bottom:0,left:0};
var mst_page_2 = doc.masterSpreads[0].pages[1];
mst_page_2.marginPreferences.properties = {top:0,right:0,bottom:0,left:0};
doc.documentPreferences.pageWidth = '1pt';
doc.documentPreferences.pageHeight = '1pt'; mg
... View more