Forum


Replies: 3   Views: 3555
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 wcalhoun  · 31-07-2015 - 15:40

I have an HTML table that has multiple rowspans in one row. The docx looks great, but when I convert it to PDF, only the last rowspan is coming over correctly. Here's an example table: <table border="1" style="border-collapse: collapse; width:100%"> <tbody> <tr> <td rowspan="2">1_1</td> <td>1_2</td> <td rowspan="2">1_3</td> <td>1_4</td> <td rowspan="2">1_5</td> </tr> <tr> <td>2_1</td> <td>2_2</td> </tr> </tbody> </table> In the PDF, only 1_5 is spanning two rows, 1_1 and 1_3 just have a blank cell below them.