Odd Nearly Blank Slide when Rendering with Aspose.Slides

The attached PPT only contains 5 slides but Aspose.Slides for .NET versions 4.4.2.0 and 5.1.0.0 report that it contains 6 slides. Additionally, when rendering the slides, the first page is nearly blank except for a zero in the bottom right corner.

Hi Mark,

I have observed the issue shared by you. Actually, you are trying to access the presentation collection that includes the master slides as well and that is why your slides count is one more then what you are having in presentation. I have generated the code snippet for you and it works fine. Please share your feedback if you still have issue.

Presentation TestPres = new Presentation("K:\\page_count_mismatch.ppt");

int CollectionCount = TestPres.Slides.Count;

int Total = TestPres.Slides.LastSlidePosition;

System.Drawing.Image img;

for (int iCount = 1; iCount <= Total; iCount++)

{

img = TestPres.GetSlideByPosition(iCount).GetThumbnail(1f, 1f);

img.Save("K:\\thumb_new"+iCount+".jpg", System.Drawing.Imaging.ImageFormat.Jpeg);

}

Thanks and Regards,

Thanks Mudassir, that addressed the issue.

Is it always safe to start at 1 or should I use the Presentation.FirstSlideNumber property to determine my starting index?