Is there any method to covert a pdf file into jpg file in c#?

G

Guest

Is there any method to covert a pdf file into jpg file in c#?
Many thanks for your replying.
 
G

Guest

In VS 2005, go to Project | Add Reference..., click on the COM tab, and add
the Adobe Acrobat 8.0 Type Library to your project.

You can try something like this...

Acrobat.AcroPDDoc acrobatPDF = new AcroPDDoc();
acrobatPDF.Open("C:\\temp\\somedoc.pdf");
acrobatPDF.Save(nType, "C:\\temp\\somedoc.jpg");

[Sorry. Can't for the life of me remember what nType should be for JPG, or
even if it's supported]

And no, if you get a bunch of Interop COM Exceptions I can't help you.
That's far too much of a can of worms for me to go near.

The best place to look for help regarding working with the Acrobat API is
the forums at WWW.PDFPlanet.com.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top