how get dimensions text frames Before Place on Pages? text frames is into a indd file . this code get dimensions image Before Place. var extensionlist = [ 'pdf', 'png', 'tif', 'indd', 'jpeg', 'jpg', 'png' ]; if (File.fs == "Windows") { selector = []; for (i=0; i<extensionlist.length; i++) selector = '*.'+extensionlist; selector = selector.join(','); imglist = Folder.myDocuments.openDlg( 'Select images', "Image:"+selector+";All files:*.*", true); } if(imglist != null) { var sizelist = []; for (i=0; i<imglist.length; i++) { r = app.activeDocument.pages[0].place(imglist, [0,0])[0]; sizelist.push ([Math.round(r.geometricBounds[3]-r.geometricBounds[1]), Math.round(r.geometricBounds[2]-r.geometricBounds[0])]); r.parent.remove(); } app.activeDocument.placeGuns.loadPlaceGun(imglist, false); alert (sizelist.join('\r')); }
... View more