We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

How to track the reordering of Slides in a presentation


Hey,

If we create a presentation in Microsoft Powerpoint and at some later stage reorder the slides, this reordering is not getting reflected while we process this presentation using aspose library.
The slides are not being processed in an ordered manner. and therefore when we create thumbnails of these slides and give a preview of all the slides to the user, the slides appear in an unordered fashion.

Can anyone please suggest a way to track the reordering of slides or to overlook this reordering and to show the processed slides in an ordered fashion as they exist in the presentation.

Thanks


Hello,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Aspose.Slides takes care of reordering of slides’ position. Here is the correct way to get thumbnails.

Presentation srcPres = new Presentation(@"d:\downloads\source.ppt");

for (int i = 1; i <= srcPres.Slides.LastSlidePosition; i++)

{

Slide sld = srcPres.GetSlideByPosition(i);

//double scaleX = (double)800 / 720;

//double scaleY = (double)600 / 540;

Image img = sld.GetThumbnail(1.0, 1.0);

img.Save(@"c:\out\outImg" + i + ".bmp", ImageFormat.Bmp);

}