Hello! I am having an issue with missing bold font styling when using the HtmlFormatProvider to export an HTML string to a PDF byte array. All other CSS styles work as expected in the creation of some relatively complex forms, but the bold formatting is missing from the resultant PDF document (see attached image).
Currently using version 2020.2.615 of Telerik.Documents & related NuGet packages (upgrade may not be possible due to some legacy restrictions, so would ideally like to resolve without)
Using the following code with an example string, we save the byte array as a database record and the document is downloaded on request by the user.
// sample string
var stringToConvert = "<div><span>Here is some text. And here is some <b>bold</b> text... maybe?</span></div><div><span>Here is some text. And here is some <strong>bold</strong> text... maybe?</span></div><div><span>Here is some text. And here is some <span style=\"font-weight:bold;\">bold</span> text... maybe?</span></div>";
HtmlFormatProvider provider = new HtmlFormatProvider();
RadFlowDocument document = provider.Import(stringToConvert);
// Export document
PdfFormatProvider byteProvider = new PdfFormatProvider();
return byteProvider.Export(document);
Thank you,
Jeff