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 |
|
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.