Hi there!
I have the latest release of Aspose.Pdf for .NET (4.2.0)
I’m getting the following error message when I’m trying to create a pdf that has a html table:
FormatException was unhandled by user code
Input string was not in a correct format.
Here is my code:
Pdf pdf1 = new Pdf();
Aspose.Pdf.License license = new Aspose.Pdf.License();
license.SetLicense(“Aspose.Pdf.lic”);
Section sec1 = pdf1.Sections.Add();
string s = “
Hi | There! |
Text t1 = new Text(s);
t1.IsHtmlTagSupported = true;
sec1.Paragraphs.Add(t1);
pdf1.Save(“HelloWorld.pdf”);
When I change the table’s end tag “” to “” I do not get the error message and a pdf is created with the table.
But this is invalid html and I also noticed that anything that follows the table in the string will be ignored.
Is this a bug?