Forum


Replies: 1   Views: 414
Embedhtml with a table - if content of table is too long, it will make the column too wide.
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by admin  · 26-01-2023 - 15:18

Hello,

That's the default behaviour of MS Word. Although you can apply fixed widths to cells, if a string is very long without spaces, then the cell width will be increased automatically.

The addTable method includes the fitText option that can be applied to cells:

fitText   bool   If true fits the text to the size of the cell.

But this option is not available when transforming HTML. We have added a task to add support in the next release of phpdocx (there's no release date).

Regards.