Replies: 4   Views: 1115
Strange table behavior after running macro savetodocxtoc
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 otysdevelopers  · 02-03-2020 - 14:04

I've noticed a strange behavior after macro of creating the toc, maybe there is a way to fix this.

this is how table looks before toc

and this is after toc macro

I'm using phpdocx 8.2 advanced.
Thanks in advance.

Posted by admin  · 02-03-2020 - 14:50


We recommend you to check you are settings widths to tables and cells when creating them (

Set the sizes of the tables manually when using addTable or embedHTML methods. So, instead of keeping the sizes with automatic values according to the content, indicate specific values for each row, column and cell.

Also please check you are using the latest release of LibreOffice (


Posted by otysdevelopers  · 02-03-2020 - 15:01

thanks for fast answer, 
we are currently using LibreOffice could upgrading this help, or it's better to play with tables before sending?

Posted by admin  · 02-03-2020 - 15:05


We recommend you to set table and cell widths to get the exact output in all DOCX readers when working with tables. Although upgrading to LibreOffice 6.4 will return a better output than LibreOffice 6.0.


Posted by otysdevelopers  · 02-03-2020 - 15:18

thanks a lot :)