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

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there any method to covert a pdf file into jpg file in c#?
Many thanks for your replying.
 
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.
 
Back
Top