EML to PDF conversion loading time issue

Dear Team,

I am facing issue while loading EML file to PDF using Aspose.Pdf v21.10. Its taking lot of time to convert. I have attached sample file (Wetransfer link as size was more). Kindly do the needfull.

Thank you! Your order number is 87297196.7z (4.6 KB)

Regards
XCoder

@perfectdata.techno

Could you please share the sample code snippet as well that you are using to carry out the conversion? We will test the scenario in our environment and address it accordingly.

Dear Team,

try
{
FileStream htmlContentStream = new FileStream(str, FileMode.Open);
Aspose.Pdf.HtmlLoadOptions htmloptions = new Aspose.Pdf.HtmlLoadOptions(str);
htmloptions.PageInfo.IsLandscape = false;
Aspose.Pdf.Document pdfDoc = new Aspose.Pdf.Document(htmlContentStream, htmloptions);
pdfDoc.Save(strPdf);
}
catch
{
Aspose.Words.Document doc = new Aspose.Words.Document(str);
doc.Save(strPdf, Aspose.Words.SaveFormat.Pdf);
}

Regards
XCoder

@perfectdata.techno

We used the below code snippet in our environment in order to convert the .eml file into PDF and noticed that the API took 100-110 seconds:

Aspose.Email.MailMessage eml = Aspose.Email.MailMessage.Load(dataDir + "Thank you! Your order number is 87297196.eml");

eml.Save(dataDir + "emailfile.html", Aspose.Email.SaveOptions.DefaultHtml);

Aspose.Pdf.HtmlLoadOptions options = new Aspose.Pdf.HtmlLoadOptions();
options.PageInfo.Width = 1250;
options.PageInfo.Height = 2000;
options.PageInfo.Margin = new MarginInfo(0, 0, 0, 0);
Document pdfDocument = new Document(dataDir + "emailfile.html", options);

pdfDocument.Save(dataDir + "emailfile.pdf");

Can you please try the above code and let us know how much time it takes in your environment?