Copy link to clipboard
Copied
the text too much,can't fit to margins
make the fonts smaller,a little ,a little. then fit the table to the margin.
There are two case,Vertical and horizontal
How do it with script?
Thanks~
below is the tabe width fit magin~ It is the example file here(IDCS6)
------------------------------------------------------------------------------------------------------------------------------------
myTable = app.selection[0].parent.parent;
parentWidth = myTable.parent.geometricBounds[3] - myTable.parent.geometricBounds[1];
factor = parentWidth/myTable.width;
for (col=0; col<myTable.columns.length; col++)
myTable.columns[col].width *= factor;
Have something to add?