We are using ASPOSE PDF version 18.104.22.168 and we are trying to generate a PDF from the HTML text and PDF is not generated properly. It has some special characters like “#$NL”.<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
Please see the below code which we used to generate the PDF document and also attached generated PDF document.
string sourceTextBody = "First Line\nSecond Line";
Pdf generatedPdf = new Pdf();
Aspose.Pdf.Section sectionSourceText = generatedPdf.Sections.Add();
Text textSourceText = new Text(sectionSourceText, sourceTextBody);
textSourceText.IsHtmlTagSupported = htmlSupport;
textSourceText.TextInfo.RenderingMode = RenderingMode.FillText;
This was working fine with the old version DLLS(22.214.171.124). Please look in to this issue.