Save pdf to jpeg using c#

后端 未结 3 1586
北恋
北恋 2020-12-02 09:49

I need to convert a pdf file into jpeg using c#. And the solution(library) have to be free.

I have searched a lot of information but seems that I dont get nothing cl

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-02 10:44

    2020 ANSWER The new version of IronPDF support converting generated PDF back to .NET Bitmap Array (for every page) so you can do whatever you want to it. Provided you've already purchased a license, but the license is for converting EVERTHING 2 PDF, not PDF 2 BITMAP, so it worths a shot.

    using IronPdf;
    using System.Drawing;
    var pdf = PdfDocument.FromFile("Example.pdf");
    Bitmap[] pageImages = pdf.ToBitmap();
    // do whatever that suits your needs here with the array
    

提交回复
热议问题