We are using ASPOSE PDF version 4.1.0.0 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;
sectionSourceText.Paragraphs.Add(textSourceText);
generatedPdf.Save(@"c:\output.pdf");
This was working fine with the old version DLLS(4.0.0.0). Please look in to this issue.
Thanks,
-Balaji