none
how to convert PDF to image file in vb.net

    Question

  • plz how to convert PDF to image file in vb.net i need to convert a pdf file using vb.net
    Monday, August 03, 2009 9:16 AM

Answers

  • There are no built-in functionality in the .Net framework for rendering a PDF file as a image. You would have to rely on some form of 3'rd party component.

    This thread links to various products and threads for doing such a conversion. All the products are however comercial. If you do a google search on for instance "vb.net convert pdf to image" you will find a lot of different products that can be used or integrated do to the job.


    If you're looking for a "free" solution, you could take a look at this codeproject article that uses a library around ghostview. You would however need to look into what licensing the library and ghostview is using if you want to distribute your application.


    Note that some of the referenced code is in C#, you should, however, be able to convert it to VB.NET using one of the online tools for converting between C# and VB.NET code. A simple search on google for "convert C# to VB.NET" will provide you with quite a few such free services.
    • Marked as answer by eryang Friday, August 07, 2009 10:46 AM
    Monday, August 03, 2009 10:00 AM
  • It depends on what type of application it is, and if it's commercial or not.

    See the following page for information about the two types of licenses that are available for Ghostview:
    http://pages.cs.wisc.edu/~ghost/doc/faq.htm#afpl_gpl

    The full license texts can be found here:
    http://www.artifex.com/downloads/doc/Public.htm
    http://www.gnu.org/licenses/gpl-2.0.html

    It is also possible to get a commercial license for GhostView, which you can find more information about here:
    http://www.artifex.com/indexlicense.htm

    In essence it is so that, if your application is released under GPL or is not for commercial distribution you could use ghostview and for instance include the ghostview installation routine with your application (You should verify this by reading the licenses carefully). If your application, is commercial and closed source or uses a open source license that is not compatible with GPL, you would have to buy a license. If that is the case, I would recomend you to look at all the commercial alternatives as other solutions than ghostview can be easier to use / better depending on your scenario.
    • Marked as answer by eryang Friday, August 07, 2009 10:46 AM
    Monday, August 03, 2009 4:58 PM

All replies

  • There are no built-in functionality in the .Net framework for rendering a PDF file as a image. You would have to rely on some form of 3'rd party component.

    This thread links to various products and threads for doing such a conversion. All the products are however comercial. If you do a google search on for instance "vb.net convert pdf to image" you will find a lot of different products that can be used or integrated do to the job.


    If you're looking for a "free" solution, you could take a look at this codeproject article that uses a library around ghostview. You would however need to look into what licensing the library and ghostview is using if you want to distribute your application.


    Note that some of the referenced code is in C#, you should, however, be able to convert it to VB.NET using one of the online tools for converting between C# and VB.NET code. A simple search on google for "convert C# to VB.NET" will provide you with quite a few such free services.
    • Marked as answer by eryang Friday, August 07, 2009 10:46 AM
    Monday, August 03, 2009 10:00 AM
  • thx bat i can distribute my application with ghostview ???
    Monday, August 03, 2009 10:13 AM
  • It depends on what type of application it is, and if it's commercial or not.

    See the following page for information about the two types of licenses that are available for Ghostview:
    http://pages.cs.wisc.edu/~ghost/doc/faq.htm#afpl_gpl

    The full license texts can be found here:
    http://www.artifex.com/downloads/doc/Public.htm
    http://www.gnu.org/licenses/gpl-2.0.html

    It is also possible to get a commercial license for GhostView, which you can find more information about here:
    http://www.artifex.com/indexlicense.htm

    In essence it is so that, if your application is released under GPL or is not for commercial distribution you could use ghostview and for instance include the ghostview installation routine with your application (You should verify this by reading the licenses carefully). If your application, is commercial and closed source or uses a open source license that is not compatible with GPL, you would have to buy a license. If that is the case, I would recomend you to look at all the commercial alternatives as other solutions than ghostview can be easier to use / better depending on your scenario.
    • Marked as answer by eryang Friday, August 07, 2009 10:46 AM
    Monday, August 03, 2009 4:58 PM
  • how to convert PDF to image file in vb.net

    Try www.ConvertPdfOnline.net

     

    PDF Vision .Net is what you need. It's a very simple in use and robust component! It will enhance your ASP.Net or WinForms C# and VB application by these functions:

     

    - Convert HTML to PDF and multi-pageTIFF to PDF

    - Transform any page of Web-site to PDF

    - Generate PDF from JPEG, GIF, BMP, PNG, ICO, TIFF, WMF, EMF

    - Create PDF from pack of images at once, like a Photo Gallery

    - Split and merge PDF documents

     


    I don't see anything on the website you are advertising that says it does what is being asked for in this one and a half year old post (converting from PDF to image). Did I miss something?
    Thursday, February 24, 2011 5:26 PM
  • how to convert PDF to image file in vb.net

    Try www.ConvertPdfOnline.net

     

    PDF Vision .Net is what you need. It's a very simple in use and robust component! It will enhance your ASP.Net or WinForms C# and VB application by these functions:

     

    - Convert HTML to PDF and multi-pageTIFF to PDF

    - Transform any page of Web-site to PDF

    - Generate PDF from JPEG, GIF, BMP, PNG, ICO, TIFF, WMF, EMF

    - Create PDF from pack of images at once, like a Photo Gallery

    - Split and merge PDF documents

     


    I don't see anything on the website you are advertising that says it does what is being asked for in this one and a half year old post (converting from PDF to image). Did I miss something?

    I agree, the answer is completely off topic. Almost as if it was a spam robot.... Oh, look at his name: he IS a spam robot; and he is off topic.

    BAN.

    Tuesday, November 15, 2011 10:34 AM
  • Hi charouel, did You try to use any third-party library ? I suggest "Pdf Focus". The library supports this convertions:

    • PDF to image(jpeg, gif, png, multiple Tiff)
    • PDF to RTF
    • PDF to Unicode Text

    Firstly, You can test free trial version with the limit of converting only first 3 pages of pdf-file.

    Full version available here

    Sample code for the converting from PDF to Multipage Tiff in VB.Net:

    		Dim f As New SautinSoft.PdfFocus()
    
            Dim pdfPath As String = "c:\PDF.pdf"
            Dim tiffPath As String = "c:\tiff_from_pdf\"
    
            f.OpenPdf(pdfPath)
    
            If f.PageCount > 0 Then
                f.ToMultipageTiff(tiffPath, 200) 
            End If

    Friday, March 23, 2012 8:49 AM
  • plz how to convert PDF to image file in vb.net i need to convert a pdf file using vb.net

    how to convert PDF to image file in vb.net? 

    what do you want ?  convert PDF files or  convert image to PDF files?  You need to bing search two different converter.  There are a lot of converter can't not only convert PDF files but also convert image to PDF. One of my classmates have one OXPDF software. Can convert different files. I think it can help you, 

    http://www.bing.com/search?q=oxpdf&go=&qs=n&form=QBLH&pq=oxpdf&sc=0-0&sp=-1&sk=
    Thursday, August 30, 2012 2:12 AM