Forum


Replies: 3   Views: 3560
Html table with multiple rowspans per line not coming over correctly in pdf
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  · 03-08-2015 - 08:41

Hello, The problem comes from the table auto width, that LibreOffice has some differences with Word. To use this auto value, its the default, you must set a value to w:w tag in the w:gridCol. To do this please edit the HTML2WordML, and change this line (around 1343): self::$WordML = str_replace('#<w:gridCol/>#', str_repeat('<w:gridCol/>', $column), self::$WordML); to: self::$WordML = str_replace('#<w:gridCol/>#', str_repeat('<w:gridCol w:w="1"/>', $column), self::$WordML); Regards.