HTML to PDF using dompdf

I am trying to use dompdf to convert HTML to PDF . The format I'm trying to match is: correct format

However, the generated PDF file has the following formatting problem:
The format i am getting

Attributes for the first column:

 <td style="width:85% !important;"><p>asdasdasd</p></td> 

Attributes for the second column:

 <td style="width:100px;vertical-align:top; text-align:center;">1234</td> 

Any solutions?

+4
source share
1 answer

sorry for the late answer, but this has something to do with the css related to the table. A small part of the settings and the error disappeared.
We had to provide a fixed width size in css to solve it.

+1
source

All Articles