I'm using Aspose Pdf 9.1. I have the following code and when it outputs to a pdf file only a line outlining the left side of the border appears. The top, bottom, and right lines outlining the border do not appear. As soon as I remove the widths from both of the table attributes the table displays correctly on the pdf file. Is this a bug? Is there something I can do to display the page correctly?
I have attached an image of my pdf.
var htmlText="<html>
<body>
<div>
<table border="1" cellspacing="0" style="font-size:8px; width:300px">
<tbody>
<tr>
<td colspan="3">
<table border="0" cellspacing="0" style="font-size:8px; width:300px">
<tbody>
<tr>
<td>Employee Name</td>
<td>Department</td>
</tr>
<tr>
<td>test</td>
<td>test</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>"
var text = new Text(htmlText);
text.IsHtmlTagSupported = true;
text.IsHtml5Supported = true;
text.IfHtmlTagSupportedOverwriteHtmlFontNames = true;
document.Sections[0].Paragraphs.Add(text);
I have attached an image of my pdf.
var htmlText="<html>
<body>
<div>
<table border="1" cellspacing="0" style="font-size:8px; width:300px">
<tbody>
<tr>
<td colspan="3">
<table border="0" cellspacing="0" style="font-size:8px; width:300px">
<tbody>
<tr>
<td>Employee Name</td>
<td>Department</td>
</tr>
<tr>
<td>test</td>
<td>test</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>"
var text = new Text(htmlText);
text.IsHtmlTagSupported = true;
text.IsHtml5Supported = true;
text.IfHtmlTagSupportedOverwriteHtmlFontNames = true;
document.Sections[0].Paragraphs.Add(text);