Hello,
Thanks for your message.
I created a .netCore project, installed our
Spire.Pdf 4.7.5 Nuget package and tested a simulated PDF, the conversion performance indeed is not as good as the older version 5.12.15. We have posted this issue to our Dev team, they will do further investigations to check if there is any approach to improve the performance. Once there is any progress, I will let you know immediately.
Meanwhile, you also can refer to the following sample code to do the conversion by using our
Spire.PDF.NETCore 7.4.5 dll. It has a better performance when converting my simulated PDF file. If the performance still is not good when you test your file, please share us with it to help do a further investigation.
- Code: Select all
PdfDocument doc = new PdfDocument();
doc.LoadFromFile("input.pdf");
//Save to images
for (int i = 0; i < doc.Pages.Count; i++)
{
String fileName = String.Format("ToImage-img-{0}.png", i);
Image image = doc.SaveAsImage(i);
image.Save(fileName, System.Drawing.Imaging.ImageFormat.Png);
}
}
Sincerely,
Sofia
E-iceblue support team