How to convert PDF to JPG within VB.Net
Posted on 2005-04-29
This task is seemingly really simple. From within VB.Net, I need to somehow save each page of a pdf document as a jpg.
I know I can buy software that will convert a pdf to a jpg from a command line, and I know I can even use ghostscript to do this, but my theory is that I should be able to do this using the Interop.Acrobat or Acrodistxlib libraries. Besides, our IT Manager would rather we use the tools we have. However, I'm not able to find any documentation on these libraries - at least not without having to pay to be a member of Adobe's developer network, which I can't afford, and you can't even get their SDK without being a member.
So, all I know to do at this point is add the Acrobat references to my VB.Net project, along with System.IO to help me navigate and retrieve the name of the PDF file I need to convert. I'm clueless as to what to do next. Any truly relevant sample would be greatly appreciated. Even pointing me to some really good documentation that specifically discusses these libraries would probably help. Alternatively, if there's just a simple way to call Acrobat or distiller from a command line and tell it to save the source pdf file as a jpg, that would be great too.