• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

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

Advocate ,
Mar 05, 2014 Mar 05, 2014

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;

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

TOPICS
Scripting

Views

266

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation