Error to load pptx class com.aspose.slides.PptxReadException: Specified argument was out of the range of valid values

Presentation pres = new Presentation(file.getAbsolutePath());
throw exception:

Exception in thread "main" class com.aspose.slides.PptxReadException: Specified argument was out of the range of valid values.
Parameter name: Index out of range ---> class com.aspose.slides.ms.pbdb106a0.bt
com.aspose.slides.bgz.do(Unknown Source)
com.aspose.slides.Presentation.new(Unknown Source)
com.aspose.slides.Presentation.for(Unknown Source)
com.aspose.slides.Presentation.for(Unknown Source)
com.aspose.slides.Presentation.(Unknown Source)
cc.pp.PptToImages.doPPTtOrPPTXoImage(PptToImages.java:216)
cc.pp.PptToImages.main(PptToImages.java:168)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:498)
com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)
--- End of inner exception stack trace ---
com.aspose.slides.bgz.do(Unknown Source)
com.aspose.slides.Presentation.new(Unknown Source)
com.aspose.slides.Presentation.for(Unknown Source)
com.aspose.slides.Presentation.for(Unknown Source)
com.aspose.slides.Presentation.(Unknown Source)
cc.pp.PptToImages.doPPTtOrPPTXoImage(PptToImages.java:216)
cc.pp.PptToImages.main(PptToImages.java:168)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:498)
com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)
at com.aspose.slides.bgz.do(Unknown Source)
at com.aspose.slides.Presentation.new(Unknown Source)
at com.aspose.slides.Presentation.for(Unknown Source)
at com.aspose.slides.Presentation.for(Unknown Source)
at com.aspose.slides.Presentation.(Unknown Source)
at cc.pp.PptToImages.doPPTtOrPPTXoImage(PptToImages.java:216)
at cc.pp.PptToImages.main(PptToImages.java:168)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)
Caused by: class com.aspose.slides.ms.pbdb106a0.bt
com.aspose.slides.bgz.do(Unknown Source)
com.aspose.slides.Presentation.new(Unknown Source)
com.aspose.slides.Presentation.for(Unknown Source)
com.aspose.slides.Presentation.for(Unknown Source)
com.aspose.slides.Presentation.(Unknown Source)
cc.pp.PptToImages.doPPTtOrPPTXoImage(PptToImages.java:216)
cc.pp.PptToImages.main(PptToImages.java:168)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:498)
com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)

Hi,


We are working on this and will get back to you with feedback soon.

Best Regards,

Hi,

I have worked with presentation file shared by you and able to observe the issue. A ticket with ID SLIDESJAVA-35894 has been created in our issue tracking system to further investigate and resolve the issue. This thread has been linked with issue so that you may be automatically notified once issue will be fixed.

We are sorry for your inconvenience,

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