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

Free Support Forum - aspose.com

Aspose.Slides for Java Throws Exception while Converting PPTX to HTML5

final Presentation pres = new Presentation(sourceStream);
pres.save(targetStream, com.aspose.slides.SaveFormat.Html5);

Exception in thread "main" class com.aspose.slides.exceptions.ArgumentOutOfRangeException: Specified argument was out of the range of valid values. Parameter name: Parameter name: index com.aspose.slides.Collections.Generic.List.get_Item(Unknown Source) com.aspose.slides.PortionCollection.get_Item(Unknown Source) com.aspose.slides.y4h.rm(Unknown Source) com.aspose.slides.k4u.rm(Unknown Source) com.aspose.slides.gdi.rm(Unknown Source) com.aspose.slides.rsm.rm(Unknown Source) com.aspose.slides.gdi.rm(Unknown Source) com.aspose.slides.yen.rm(Unknown Source) com.aspose.slides.gdi.rm(Unknown Source) com.aspose.slides.qj0.rm(Unknown Source) com.aspose.slides.qj0.rm(Unknown Source) com.aspose.slides.gdi.rm(Unknown Source) com.aspose.slides.pt1.rm(Unknown Source) com.aspose.slides.xs8.rm(Unknown Source) com.aspose.slides.xs8.rm(Unknown Source) com.aspose.slides.xs8.rm(Unknown Source) com.aspose.slides.Presentation.rm(Unknown Source) com.aspose.slides.Presentation.rm(Unknown Source) com.aspose.slides.Presentation.save(Unknown Source)

AsposeSlideCrashV2.zip (31.0 KB)

Thank you for reporting on the issue. I reproduced the exception when converting the PowerPoint presentation to an HTML5 document.

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): SLIDESJAVA-39133

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

Please also share the following additional information if it is possible:

  • OS version on which the error occurred
  • JDK version in your app