A PptxReadException Occurred while Reading PowerPoint Presentation Files in Java

Please download the original file from the following link.

When I run the code, an PptxReadException is thrown.

Presentation presentation = new Presentation(filePath);

The following is the error stack information:

class com.aspose.slides.PptxReadException: The given key was not present in the dictionary. ---> class com.aspose.slides.exceptions.KeyNotFoundException: The given key was not present in the dictionary.
com.aspose.slides.Collections.Generic.Dictionary.get_Item(Unknown Source)
com.aspose.slides.internal.xo.kq.w9(Unknown Source)
com.aspose.slides.internal.hf.hh.w9(Unknown Source)
com.aspose.slides.internal.hf.wi$1.w9(Unknown Source)
com.aspose.slides.internal.hf.w1.w9(Unknown Source)
com.aspose.slides.internal.hf.wi.<init>(Unknown Source)
com.aspose.slides.internal.hf.fy$1.w9(Unknown Source)
com.aspose.slides.internal.hf.w1.w9(Unknown Source)
com.aspose.slides.internal.hf.fy.<init>(Unknown Source)
com.aspose.slides.internal.hf.j8$2.w9(Unknown Source)
com.aspose.slides.internal.hf.w1.w9(Unknown Source)
com.aspose.slides.internal.hf.j8.<init>(Unknown Source)
com.aspose.slides.internal.hf.xv$2.w9(Unknown Source)
com.aspose.slides.internal.hf.w1.w9(Unknown Source)
com.aspose.slides.internal.hf.xv.<init>(Unknown Source)
com.aspose.slides.internal.hf.n4u$1.w9(Unknown Source)
com.aspose.slides.internal.hf.w1.w9(Unknown Source)
com.aspose.slides.internal.hf.n4u.<init>(Unknown Source)
com.aspose.slides.internal.hf.v6.<init>(Unknown Source)
com.aspose.slides.internal.hf.ar6$1.w9(Unknown Source)
com.aspose.slides.internal.hf.w1.w9(Unknown Source)
com.aspose.slides.internal.hf.ar6.<init>(Unknown Source)
com.aspose.slides.internal.hf.goj$2.w9(Unknown Source)
com.aspose.slides.internal.hf.w1.w9(Unknown Source)
com.aspose.slides.internal.hf.goj.<init>(Unknown Source)
com.aspose.slides.internal.hf.zt$2.w9(Unknown Source)
com.aspose.slides.internal.hf.w1.w9(Unknown Source)
com.aspose.slides.internal.hf.zt.<init>(Unknown Source)
com.aspose.slides.c3c.w9(Unknown Source)
com.aspose.slides.g8u.w9(Unknown Source)
com.aspose.slides.tdk.eb(Unknown Source)
com.aspose.slides.tdk.w9(Unknown Source)
com.aspose.slides.Presentation.ky(Unknown Source)
com.aspose.slides.Presentation.w9(Unknown Source)
com.aspose.slides.Presentation.w9(Unknown Source)
com.aspose.slides.Presentation.<init>(Unknown Source)
com.aspose.slides.Presentation.<init>(Unknown Source)

If there is a way to avoid mistakes, please tell me. Thank you for your advice and help.

OS: macOS 13.2.1
JVM: OpenJDK 64-Bit Server VM (17.0.1+12-39, mixed mode, emulated-client, sharing)
Java: version 17.0.1, vendor Oracle Corporation
sdk: aspose.slides-23.3

@oscarstar,
Thank you for reporting on the issue.

I reproduced the exception with the presentations you provided.

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-39157

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.

The issues you found earlier (filed as SLIDESJAVA-39157) have been fixed in Aspose.Slides for Java 23.5 (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.