Free Support Forum - aspose.com

How to save the Slides JEG?

Hello,

I want to save the slides in a presentation as a JPEG image i.e., even if there are text in a slide it should be saved as JPEG image. Can anybody help me?

Thanks


This message was posted using Page2Forum from Utility Features#1 - Aspose.Slides for .NET and Java

Dear Appu_Achu,

Thanks for considering Aspose.Slides.

You can get the images of slides and save them in different image formats like JPEG, PNG, BMP etc. For it you use, Slide.Getthumbnail() method.

For a code example in C#, VB.NET, JAVA, please see this link.

http://www.aspose.com/documentation/file-format-components/aspose.slides-for-.net-and-java/creating-slide-thumbnail-image.html

// open ppt file
Presentation Pres = new Presentation("c:\\pres.ppt");

// jpeg size
Size size = new Size(960, 720);

// will be converted slide
Slide slide = Pres.GetSlideByPosition(1);

// convert slide to jpeg image
slide.GetThumbnail(size).Save("c:\\slide.jpg", ImageFormat.Jpeg);

Thank you very much for the reply. I tried and it worked :)