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

Free Support Forum - aspose.com

Html tags not supported

I have licence version of Aspose.pdf, We are trying to generate pdf using html, but some tags not able to render when i generate pdf like Style:background image , dashed border in table etc, kindly give me solution for same,
Kindly find below sample code for ref


string _strFileName = "PdfReport.pdf";

Aspose.Pdf.Generator.Pdf lobjPdf = new Aspose.Pdf.Generator.Pdf();
lobjPdf.IsLandscape = true;
lobjPdf.IsPageNumberForDocument = true;
Aspose.Pdf.Generator.Section lobjSection = lobjPdf.Sections.Add();

string a = "

Hello
ABC 12/18/13
XYZ
TBD 12/18/13
";

Text ltxtText = new Text(lobjSection,a);
ltxtText.IsHtmlTagSupported = true;

lobjSection.Paragraphs.Add(ltxtText);
string pstrSavedFilePath = Server.MapPath("UPLOAD");
string pstrFilePath = pstrSavedFilePath + @"\" + _strFileName;

//Delete pdf file if exists
if (System.IO.File.Exists(pstrFilePath))
System.IO.File.Delete(pstrFilePath);
lobjPdf.OpenType = Aspose.Pdf.Generator.OpenType.None;
lobjPdf.Save(pstrFilePath);

//TO open generated Pdf
this.SaveReadPdf(pstrFilePath, _strFileName);


tags to check,
backgroung image and dashed border
thanks in advance, kindly do some needful, waiting for positive reply.

Hi Mangesh,


<span style=“font-size:10.0pt;font-family:“Arial”,“sans-serif””>Thanks
for using our products.<o:p></o:p>

I have tested the scenario and I am able to reproduce the same problem. For the sake of correction, I have logged it in our issue tracking system as PDFNEWNET-35910. We will investigate this issue in details and will keep you updated on the status of a correction.

We apologize for your inconvenience.

The issues you have found earlier (filed as PDFNEWNET-35910) have been fixed in Aspose.Pdf for .NET 9.6.0.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.