0 Replies Latest reply on Mar 5, 2014 7:42 AM by 喜狼_edny

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

    喜狼_edny Level 1

      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;

      table text fit to magins-V.jpgtable text fit to magins-H.jpg