locked
converting pdf file to an jpeg image RRS feed

  • Question

  • hi all,

    I my application i need to convert pdf file to an jpeg image. I dont have much knowledge about images and their processing.

    I am able to get pdf location directly. How can i convert pdf file to image(Jpeg).

     

    thanks in advance

    Wednesday, July 7, 2010 12:30 PM

Answers

  • One solution is to use a third party library.  ImageMagick is a very popular, freely available too.  You can get the .NET wrapper for it by clicking the big green download button here.  The original ImageMagick download page is here.
    Wednesday, July 7, 2010 1:02 PM
  • Hi xpbaroda,

       Welcome to MSDN forums! I'm glad to see your active participation and discussion in MSDN forums. Based on your issue please refer to

     http://www.codeproject.com/KB/library/pdftoimages.aspx Convert PDF pages to image files using the Solid Framework

       http://www.print-driver.com/howto/convert_pdf_to_jpeg.html Universal Document Converter

       http://www.makeuseof.com/tag/6-ways-to-convert-a-pdf-file-to-a-jpg-image/ 6 Ways To Convert A PDF To A JPG Image

    Hope these will help you!  

       If you still have any doubt and concern about this issue, please let me know. If I misunderstood you, please kindly elaborate your question.

    This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet


    Please Mark as Answered If this is helpful Or Un-Mark as Answered if it is not helpful.

    Best Regards,
    Yan Jun
    Microsoft Online Community Support

    • Marked as answer by Fafafaalex Tuesday, July 13, 2010 8:13 AM
    Monday, July 12, 2010 5:58 AM

All replies

  • One solution is to use a third party library.  ImageMagick is a very popular, freely available too.  You can get the .NET wrapper for it by clicking the big green download button here.  The original ImageMagick download page is here.
    Wednesday, July 7, 2010 1:02 PM
  • Aspose also has components available that are fully managed, in case you want to do this from a web application.
    Wednesday, July 7, 2010 1:05 PM
  • thanks for replay,

     

    Can u just send me download link of imagemagik. I am not able to get its link.

     

    thanks

    Wednesday, July 7, 2010 1:22 PM
  • Hi xpbaroda,

       Welcome to MSDN forums! I'm glad to see your active participation and discussion in MSDN forums. Based on your issue please refer to

     http://www.codeproject.com/KB/library/pdftoimages.aspx Convert PDF pages to image files using the Solid Framework

       http://www.print-driver.com/howto/convert_pdf_to_jpeg.html Universal Document Converter

       http://www.makeuseof.com/tag/6-ways-to-convert-a-pdf-file-to-a-jpg-image/ 6 Ways To Convert A PDF To A JPG Image

    Hope these will help you!  

       If you still have any doubt and concern about this issue, please let me know. If I misunderstood you, please kindly elaborate your question.

    This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet


    Please Mark as Answered If this is helpful Or Un-Mark as Answered if it is not helpful.

    Best Regards,
    Yan Jun
    Microsoft Online Community Support

    • Marked as answer by Fafafaalex Tuesday, July 13, 2010 8:13 AM
    Monday, July 12, 2010 5:58 AM
  • Downloaded poppler and then used a process to call it.  Got it from some site alivate dot com

    Process p = new Process();
    p.StartInfo.UseShellExecute = false;
    p.StartInfo.RedirectStandardOutput = true;
    p.StartInfo.CreateNoWindow = true;
    p.StartInfo.FileName = "C:\\poppler-0.68.0\\bin\\pdftoppm.exe";
    p.StartInfo.Arguments = "-png -r 300 C:\\example.pdf C:\\example.png";
    p.Start();


    • Edited by Demouth Wednesday, May 8, 2019 12:18 AM
    Wednesday, May 8, 2019 12:17 AM