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)

@ViDaNgEr,
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

Do you plan to fix it soon?

@ViDaNgEr,
I’ve requested plans for the issue from our development team. We will let you know soon.

The issues you found earlier (filed as SLIDESJAVA-39133) have been fixed in Aspose.Slides for Java 23.12 (JAR).
You can check all fixes on the Release Notes page.
You can also find the latest version of our library on the Product Download page.