Dear Support,
kindly suggest me replacement of that code.
Aspose.Pdf.Generator.Pdf aPdf = new Aspose.Pdf.Generator.Pdf();
aPdf.BindHTML(aReportText);
aPdf.Save(aReportFile.FullName);
Thanks,
Naveen.
Dear Support,
kindly suggest me replacement of that code.
Aspose.Pdf.Generator.Pdf aPdf = new Aspose.Pdf.Generator.Pdf();
aPdf.BindHTML(aReportText);
aPdf.Save(aReportFile.FullName);
Thanks,
Naveen.
Please try the code as follows:
C#
HtmlLoadOptions opts = new HtmlLoadOptions();
Aspose.Pdf.Document document = new Aspose.Pdf.Document(@"c:\temp\input.html", opts);
document.Save(@"c:\temp\output.html", SaveFormat.Pdf);