When generating a PDF using some HTML, I am getting a corrupt document.
Testing the List tags
Here is the C#:
Pdf pdf1 = new Pdf();
Section sec2 = new Section(pdf1);
pdf1.Sections.Add(sec2);
string str = "Testing the List tags
No wrap 1 ";
- Ordered List 1
Text text = new Text(
str);
text.IsHtmlTagSupported = true;
sec2.Paragraphs.Add(text);
This seems to fail because the No wrap 1 does not have an enclosing wrapping (
- or
- ) around it. However, having just
- in html does work and renders just fine in the browsers I've tested. I would like to continue having
- without the need to enclose them in a wrapping tag as this is how many users may input their data which I will be reading from.
Edit: Fixed a typo