i have C#.Net Code that convert all Pages in Power point to One Image, But i want to Convert each Page In Power Point To Signle Image !!
Note : i want to Code that can determine total Number Of Pages In Power Point File , then Looping them and Convert each Page To Signle Image.
thank u
Hello Dear,
Please use the code snippet given below for creating slides thumbnails of all slides in presenation. Please share with us, if you still feel any issue while using the code snippet.
Presentation pres = new Presentation("D:\\Test.ppt"); Slide sld; Image img; for (int i = 0; i < pres.Slides.Count; i++) { sld = pres.Slides[i]; img = sld.GetThumbnail(1, 1); img.Save("Slide_"+i+".jpg", ImageFormat.Jpeg); }
Presentation pres = new Presentation("D:\\Test.ppt");
Slide sld;
Image img;
for (int i = 0; i < pres.Slides.Count; i++)
{
sld = pres.Slides[i];
img = sld.GetThumbnail(1, 1);
img.Save("Slide_"+i+".jpg", ImageFormat.Jpeg);
}
Thanks and Regards,