Posted by a ceTe Software moderator
Hello,
Issue 1: You are getting this error because of accessing a namespace (Converter) which is not available in DynamicPDF Core Suite product. It is available in a separate and independent product called DynamicPDF Converter for .NET. Please note that currently the DynamicPDF Converter for .NET does not supports .NET Core.
Issue 2: The Label page element will add all the text as is to the PDF. This is the reason why you are seeing HTML text is added along with tags. This is expected behavior.
If you would like to add HTML text to PDF using DynamicPDF Core Suite product then you will need to use HtmlArea page element. You can refer to the documentation on HtmlArea
here. Also below is the code sample to use HTML string with HtmlArea page element.
Document document = new Document();
Page page = new Page();
document.Pages.Add(page);
string htmlText = "<html><body>This is to test</body></html>";
HtmlArea area = new HtmlArea(htmlText, 0, 0, 500, 600);
page.Elements.Add(area);
string output = @"Path to save the output PDF";
document.Draw(output);
Thanks,
ceTe Software Support Team