ASPOSE TBL Border styles.png (10.7 KB)
A simple Table HTML conversion to PDF format is not rendering Border styles correctly for the table.
using DocumentBuilder class -> InsertHTML method
Check attached pic to understand how table is wrongly getting converted
HTML code below:
<html><head></head><body style="font-family: "Arial";font-size: 12pt;margin-left: 2.54cm !important;margin-right: 2.54cm !important;line-height: normal"><h2 style="font-family: "Arial"">testing</h2>
<p>Test McTest</p>
<table style="border-collapse: collapse; width: 100%; border-style: solid;" border="4">
<tbody>
<tr>
<td style="width: 19.3333%;"> </td>
<td style="width: 19.5%;"> </td>
<td style="width: 19.5%;"> </td>
<td style="width: 19.5%;"> </td>
<td style="width: 19.5%;"> </td>
</tr>
<tr style="border-style: dashed;">
<td style="width: 19.3333%;"> </td>
<td style="width: 19.5%;"> </td>
<td style="width: 19.5%;"> </td>
<td style="width: 19.5%;"> </td>
<td style="width: 19.5%;"> </td>
</tr>
<tr style="border-style: double;">
<td style="width: 19.3333%;"> </td>
<td style="width: 19.5%;"> </td>
<td style="width: 19.5%; border-style: outset;"> </td>
<td style="width: 19.5%;"> </td>
<td style="width: 19.5%;"> </td>
</tr>
<tr>
<td style="width: 19.3333%;"> </td>
<td style="width: 19.5%;"> </td>
<td style="width: 19.5%; border-style: hidden;"> </td>
<td style="width: 19.5%;"> </td>
<td style="width: 19.5%;"> </td>
</tr>
</tbody>
</table></body></html>