Hi,
Hi There,
Thanks for contacting support.
manmo:
My company has use the Aspose.PDF product to PDF files. We are using the version 11.5.0.
Please note that you are using a quite old version of the API, whereas it is always recommended to use latest version of the API which is Aspose.Pdf for .NET 17.4.0.
I have tried to run the code snippet which you have shared and found that there were missing/undefined objects in it. Though I have managed to convert your shared HTML into PDF by following code snippet with latest version of the API and I have observed the anomalies in generated output.
Aspose.Pdf.HtmlLoadOptions htmlLoadOptions = new Aspose.Pdf.HtmlLoadOptions();
htmlLoadOptions.InputEncoding = "UTF-8";
htmlLoadOptions.PageInfo.Margin = new Aspose.Pdf.MarginInfo(5, 5, 20, 20);
htmlLoadOptions.PageInfo.IsLandscape = true;
Aspose.Pdf.Document newPDF = new Document();
string strTemplate = System.IO.File.ReadAllText(dataDir + "HTMLforASPOSE.html");
using (System.IO.MemoryStream stream = new System.IO.MemoryStream(System.Text.Encoding.UTF8.GetBytes(strTemplate)))
{
newPDF = new Aspose.Pdf.Document(stream, htmlLoadOptions);
}
foreach (Aspose.Pdf.Page p in newPDF.Pages)
{
p.PageInfo.IsLandscape = true;
}
newPDF.Save(dataDir + "HTMLforASPOSE.pdf");
In the generated output, content was overlapped and for the sake of correction, I have logged an issue as PDFNET-42628 in our issue tracking system. We will further investigate the issue and keep you informed on the status of its resolution. Please be patient and spare us a little time. We are sorry for the inconvenience.
Best Regards,
Hi Asad Ali,
Hi Manmo,
Hi codewarior,
For my issue, is there any updates?
I found the latest update Aspose.Pdf for .NET 17.8, but the Release Note does not include my issue(PDFNET-42628), is this version can fix the issue?
Please let me know the progress, thanks.
Best Regards.
Thanks for your inquiry.
I am afraid that earlier logged issue has not been resolved yet due to large number of pending issues in the queue. Product team will surely plan to provide a fix against your issue as per their development schedule and as soon as we have some certain updates in this regard, we will let you know. Please be patient and spare us little time.
We are sorry for the inconvenience.