We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

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=“http://www.w3.org/1999/XSL/Transform”>

<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:template name=“Main” match=“node()”>

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



HtmlString: “Some bold text”.

Binding snippet is pretty common:
Pdf pdf = new Pdf();
pdf.BindXML(xml, xslt);
byte[] pdfFile;
using (MemoryStream memStream = new MemoryStream())
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

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

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,