Hi,
Hi Reuven,
//open
document<o:p></o:p>
Document pdfDocument = new Document("c:/pdftest/TO15.pdf");
for (int pageCount = 1; pageCount <= pdfDocument.Pages.Count; pageCount++)
{
using (FileStream imageStream = new FileStream("c:/pdftest/TO15_image" + pageCount + ".jpg", FileMode.Create))
{
//create Resolution object
Resolution resolution = new Resolution(300);
JpegDevice jpegDevice = new JpegDevice(resolution, 100);
//convert a particular page and save the image to stream
jpegDevice.Process(pdfDocument.Pages[pageCount], imageStream);
//close stream
imageStream.Close();
}
}
Hi, thanks for the response.
Any news about this issue?
Hi Reuven,
Would you mind sharing your CLR code? I’m struggling to get it work on my SQL2012 server - works fine on my 2008. I’m running 2012 on Windows Server 2012…
Hi,
Hi Reuven,