Marcia.Zhou wrote:Hello,
Thanks for sharing more information!
Kindly note that our .NET Standard dll relies on the SkiaSharp to handle images, however, SkiaSharp itself is slower in processing images. We have been optimizing the speed of converting to PDF page to image, but due to SkiaSharp itself has many restrictions, it is complex and difficult to optimize it.
I recommend that you can change the framework to .net core, .net framework, net, or move the part of converting to image to the project under these frameworks to improve the speed of converting to images. Hope you can understand.
Sincerely,
Marcia
E-iceblue support team
Thanks for your information, but I still have peroformance issue when converting pdf to image, the converted image size is 3181*1270, and the dpi is 330, the the conversion will last 1 mimute...
My environment as belows.
1. <TargetFramework>net8.0</TargetFramework>
2. <PackageReference Include="SkiaSharp.NativeAssets.Linux.NoDependencies" Version="3.116.1" />
3. <PackageReference Include="Spire.PDFfor.NETStandard" Version="11.9.8" />
- Code: Select all
var imgStream = pdf.SaveAsImage(0, PdfImageType.Bitmap);