我一直在寻找免费的.NET Core代码或组件来将PDF光栅化为图像,但是没有机会,有没有?
[尝试使用DynamicPDF Rasterizer会将PDF转换为图像并在.NET Core上运行:
PdfRasterizer rasterizer = new PdfRasterizer("test.pdf");
//convert pdf to image with jpg format
//all the files would locate in the project folder
rasterizer.Draw("output.jpg", ImageFormat.Jpeg, ImageSize.Dpi72);