Aspose.Pdf <strong> and <b> html tags not working from XSLT

Hi Aspose-Team,

i have the following issue while creating pdf-file via binding xml with xslt. My problem is that the tags are not displaying correctly.

Here are some code snippets for you to understand what i’m doing not right:

<?xml version="1.0" encoding="utf-8" ?>
<xsl:stylesheet version=“1.0” xmlns:xsl=“XSLT Namespace”>

<xsl:attribute-set name=“PureHtml”>
<xsl:attribute name=“FontName”>Tahoma</xsl:attribute>
<xsl:attribute name=“FontSize”>10</xsl:attribute>
<xsl:attribute name=“IsHtmlTagSupported”>true</xsl:attribute>
<xsl:attribute name=“UseTextInfoStyle”>true</xsl:attribute>
</xsl:attribute-set>

<xsl:template name=“Main” match=“node()”>




<xsl:value-of select=“HtmlString”/>




</xsl:template>

</xsl:stylesheet>

HtmlString: “Some bold text”.

Binding snippet is pretty common:
Pdf pdf = new Pdf();
pdf.BindXML(xml, xslt);
byte[] pdfFile;
using (MemoryStream memStream = new MemoryStream())
{
pdf.Save(memStream);
memStream.Position = 0;
pdfFile = memStream.ToArray();
}
return pdfFile;

It also does’t work with tag.
What am i doing wrong? I’m using Apose.Pdf 9.3. I also tried 9.6 and still no luck.

Thank you very much for your help and hints.

Best regards
Alex

Hi Alex,


Thanks for your inquiry. I have tested the scenario with Aspose.Pdf for .NET 9.6.0 and notice the reported issue. So logged the issue as PDFNEWNET-37540 in our issue tracking system for further investigation and resolution. We will notify you as soon as issue is resolved.

We are sorry for the inconvenience caused.

Best Regards,

Hi Tilal,

thank you very much for a quick response.

I also noticed that this issue is gone if your text snippet surrounded with

,

tag. Replacing Some bold text with

Some bold text

displays text in a corret format. But it causes other issues.

Best regards
Alex

Hi Alex,


Thanks for your feedback. We will appreciate it if you please share your sample document and share some more details about the other issues you are facing. We will investigate these and guide you accordingly.

We are sorry for the inconvenience caused.

Best Regards,