Skip to main content
dublove
Legend
March 5, 2014
Question

table text too much,can't fit to margins,if can make the fonts smaller,a little ,then fit to margin?

  • March 5, 2014
  • 0 replies
  • 289 views

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;

This topic has been closed for replies.