Reputation: 1030
I am trying to use dompdf
to convert HTML
to PDF
. The format that I am trying to match is:
However, the generated PDF has the following formatting issue:
The attributes for the first column are:
<td style="width:85% !important;"><p>asdasdasd</p></td>
The attributes for the second column are:
<td style="width:100px;vertical-align:top; text-align:center;">1234</td>
Any solutions?
Upvotes: 4
Views: 546
Reputation: 1030
sorry for the late answer but it had something to do with css related to the table.Little bit of tweaking and the error was gone.
We had to provide fixed width dimension in the css to solve it.
Upvotes: 1