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

Free Support Forum - aspose.com

Text in not showing when IsHtmlTagSupported set to true

Hi,
When i try to create a pdf with aspose.pdf .NET version 4.3.0 the text nodes with the attribute IsHtmlTagSupported=“true” are not showing at all. remove the attribute and the text is showing. But showhow i can’t get any to show any InlineHTML fields. see xml-input example below. any idea what i’m doing wrong?

Greetz
Sivard Donkers

Code:
string PDFFileName = string.Format(“pdf_{0}.pdf”, Guid.NewGuid().ToString());
Aspose.Pdf.Pdf pdf1 = new Aspose.Pdf.Pdf();
Aspose.Pdf.License license = new Aspose.Pdf.License();
license.SetLicense(“Aspose.Pdf.lic”);
System.Xml.XmlDocument PdfDocument = new System.Xml.XmlDocument();
PdfDocument.LoadXml(txtPDF.Text);
pdf1.BindXML(PdfDocument, null);
pdf1.Save(HttpContext.Current.Server.MapPath("/temp/PDF/" + PDFFileName));


XML:
<?xml version="1.0" encoding="utf-8"?>
Informatie en adviestest

Hi aspose,
think i found the problem. In floating boxes the tag IsHtmlTagSupported doesn’t seem to work. Text outside a floating box is converted perfectly. Is this a feature or a bug?

Greetz
Sivard

<?xml version="1.0" encoding="utf-8"?>
Informatie en adviestest<![CDATA[test]]>

hi all,
found a quick-fix. When i removed the ZIndex property from the Floating box the text appeared!!

Greetz
sivard