I'm building Joomla component and I want to save generated admin table as PDF file using Joomla PDF document class, that uses TCPDF library.
Now I have managed to get the table contents, and save it as PDF, but for some reason table width is exceeding page width.
I have tried everything, external css, inline css, but it simply doesn't read my styles and outputs the table with no styling. The table has 5 columns and I can only see first 3 of them, even if just write single character in each column.
This is the html that I tried to output as PDF:
<table style="width:300px;">
<tr style="height:120px;">
<td style="border:1px solid #000000;width:200px;color:red;">1</td>
<td>2</td>
<td>3</td>
<td>4</td>
<td>5</td>
</tr>
</table>
And what I get in output PDF is just: 1 2 3 So values 4 and 5 are outside of page.
Please help I've been struggling with this for past few hours. Thanks!
!important
after the width helps does it? – Lodder