Forum


Replies: 1   Views: 1775
Table css causing entire page (and following pages) to be missing
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 coolaustralia  · 29-10-2019 - 11:02

Please see https://pastebin.com/DEVkqsqa

On line #147, if I remove 

width: 33%;

the entire page that it is on vanishes. Having the width set on 2/3 TDs is valid HTML.

This is latest PHPDOCX 9 on PHP7.2

Please see a side by side comparison of the DOCX files generated here: https://imgur.com/a/8fkCIYA

Posted by admin  · 30-10-2019 - 08:17

Hello,

We have run your code using phpdocx 9.0 and 9.5 (classic and namespaces packages) with PHP 5.6, 7.0, 7.2 and 7.3 and in all cases all contents are generated in the DOCX. There's no missing contents setting or not 33% as width. Please check your server logs, maybe there's any warning or error?

Anyway, we always recommend setting all widths to get a correct output, most DOCX readers can't handle auto values correctly (https://www.phpdocx.com/documentation/cookbook/convert-html-to-wordDefining widths in tables section).

Regards.