New Aspose.Slides.Presentation(file) throws Index was out of range

Hi All,


I have some code that converts ppt & pptx files into PDF to be viewable on an iPad app. I have noticed that one ppt file fails with the following error message:

System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative
and less than the size of the collection.
Parameter name: index
at System.ThrowHelper.ThrowArgumentOutOfRangeException()
at System.Collections.Generic.List`1.get_Item(Int32 index)
at Aspose.Slides.SlideCollection.get_Item(Int32 index)
at​:clubs::slight_smile:.?☼:clubs::slight_smile:.?▬☼:slight_smile:()
at :clubs::slight_smile:.?☼:clubs::clubs::spades::slight_smile:()
at :clubs::slight_smile:.?☼:clubs::slight_smile:.?:diamonds::spades::slight_smile:(??:slight_smile: fs)
at Aspose.Slides.Presentation.?:clubs:?:slight_smile:(??:slight_smile: fileSystem)
at Aspose.Slides.Presentation.∟⌂▬(Stream stream)
at Aspose.Slides.Presentation…ctor(String file, LoadOptions loadOptions)
at Aspose.Slides.Presentation…ctor(String file)

If i save the ppt as a pptx it all works as expected. I have read some other questions that indicate to using templates. My code is the following:

Aspose.Slides.License lic = new Aspose.Slides.License();
lic.SetLicense(asposeLicense);
using (Aspose.Slides.Presentation presentation = new Aspose.Slides.Presentation(inputFileName))
{
//Do Work
}
Does anyone have any ideas on whats going wrong? Im using the latest 4.0 build from the 28th November

Hi Tim,

Thank you for considering Aspose.

Please share the presentation file with us which causes the problem at your end. We will check it and get back to you.

Thanks & Regards,

Hi Team,


I have zipped up and attached the presentation.

Thanks,

Tim

Hi Tim,

Thank you for sharing the file.

I am able to reproduce your mentioned issue after an initial test using your template file. Your issue has been registered in our issue tracking system with issue id: SLIDESNET-35933. You will be notified via this forum thread once the issue gets resolved.

Thanks & Regards,

The issues you have found earlier (filed as SLIDESNET-35933) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.