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,