0
table text too much,can't fit to margins,if can make the fonts smaller,a little ,then fit to margin?
Advisor
,
/t5/indesign-discussions/table-text-too-much-can-t-fit-to-margins-if-can-make-the-fonts-smaller-a-little-then-fit-to-margin/td-p/5941950
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;
TOPICS
Scripting
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Have something to add?
Join the conversation

