Hi,
I have downloaded aspose trail version for converting pdf to image and image to pdf. When I am converting pdf to image than some files are converted and some are not. Means most of the files I found is not converting to png or any image type.
Hi,
I have downloaded aspose trail version for converting pdf to image and image to pdf. When I am converting pdf to image than some files are converted and some are not. Means most of the files I found is not converting to png or any image type.
Hi Tarang,
Hi,
Hi Tarang,
//open document<o:p></o:p>
Document pdfDocument = new Document("c:/pdftest/Prueba+1.PDF");
for (int pageCount = 1; pageCount <= pdfDocument.Pages.Count; pageCount++)
{
using (FileStream imageStream = new FileStream("c:/pdftest/Prueba+1_image" + pageCount + ".jpg", FileMode.Create))
{
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,
Hi Tarang,