I have a very simple test html that i want to convert to pdf. I made a small test program to test this but i ran into a problem. Code:
var content = @"
Test
Title here 1
Some content here…
Title here 2
Some content here…
Title here 3
Some content here…
";
var pdf = new Pdf();
pdf.HtmlInfo.BadHtmlHandlingStrategy = BadHtmlHandlingStrategy.ThrowException;
pdf.HtmlInfo.ShowUnknownHtmlTagsAsText = true;
var section = pdf.Sections.Add();
var html = new Text(content);
html.IsHtmlTagSupported = true;
section.Paragraphs.Add(html);
pdf.Save(“D:\temp\tmp.pdf”);
System.Diagnostics.Process.Start(“D:\temp\tmp.pdf”);
The rendered output shows the h2 and h3 tags as text. They are on the supported list (and should be :)) but they are not recognized. Am i doing something wrong? I am using 9.1.0 trial version.