i have a string variable with html code and need convert to pdf the code of the variable, the variable is filled with the data of one gridview
<div>
<table>
<tr>
<td>Name</td>
<td>Cuty</td>
<td>Other Row</td>
<tr>
<td>Jonh</td>
<td></td>
<td></td>
<tr>
<tr>
<td>Name</td>
<td style="background-color:#00AA55;">Mary</td>
<td></td>
<td></td>
<tr>
</table>
</div>
and i need convert this table in pdf including the row style. currently use itext library but don't add the style on the document