Convert Word, PDF and Publisher files to images RRS feed

  • Question

  • User-1465275199 posted

    Hi There,

          I am working in project, there is one new requirement. that is How to Convert Word, PDF and Publisher files to png images respectively in asp.net?

    Any one can help me please.

    Thanks a lot in advance.

    SuneelKumar Biyyapu

    Wednesday, September 24, 2014 12:59 AM

All replies

  • User368552557 posted

    You can use iTextSharp library or MuPdf library


    int page = 1;
    int dpi = 200;
    MuPDFLib.RenderType RenderType = RenderType.RGB;
    bool rotateAuto = true;
    string file = @"C:\test.pdf";
    string password = ""; 
    MuPDFLib.MuPDF pdfDoc = new MuPDFLib.MuPDF(file, password);
    pdfDoc.Page = page;
    if (picPDF.Image != null)
    Bitmap bm = pdfDoc.GetBitmap(0, 0, dpi, dpi, 0, RenderType,
                                 rotateAuto, false, 0);

    Tuesday, September 30, 2014 12:55 AM