PptReadException Is Thrown when Reading PPT Files Using Aspose.Slides for Java

Please browse the files in the following package.

什么是有机化合物.ppt.zip (3.2 MB)
967d.ppt.zip (1.1 MB)
ffef.ppt.zip (1.2 MB)

When I run the code, an ArgumentOutOfRangeException is thrown.

Presentation presentation = new Presentation(filePath);

The following is the error stack information:

class com.aspose.slides.PptReadException: Couldn't read "PowerPoint Document" record. ---> class com.aspose.slides.exceptions.Exception: Couldn't read [gc Start
Self: gc, Header:RecordHeader, Type:0x3EE [RT_Slide], Version:15, Instance:0, Length:0x0
gc End
] ---> class com.aspose.slides.exceptions.Exception: Couldn't read [transient Start
Self: transient, Header:RecordHeader, Type:0x40C [RT_Drawing], Version:15, Instance:0, Length:0x0
transient End
] ---> class com.aspose.slides.exceptions.Exception: Couldn't read [da Start
Self: da, Header:RecordHeader, Type:0xF002 [OA_DgContainer], Version:15, Instance:0, Length:0x0
da End
] ---> class com.aspose.slides.exceptions.Exception: Couldn't read [du Start
Self: du, Header:RecordHeader, Type:0xF003 [OA_SpgrContainer], Version:15, Instance:0, Length:0x0
du End
] ---> class com.aspose.slides.exceptions.Exception: Couldn't read [dt Start
Self: dt, Header:RecordHeader, Type:0xF004 [OA_SpContainer], Version:15, Instance:0, Length:0x0
dt End
] ---> class com.aspose.slides.exceptions.Exception: Couldn't read [c9 Start
Self: c9, Header:RecordHeader, Type:0xF00D [OA_ClientBox], Version:15, Instance:0, Length:0x0
c9 End
] ---> class com.aspose.slides.exceptions.Exception: Chars count mismatch [-1] in StyleTextProAtom.TextPFRuns!!! Text "sh"
com.aspose.slides.internal.oe.g1.do(Unknown Source)
com.aspose.slides.internal.oe.fj.do(Unknown Source)
com.aspose.slides.internal.oe.h7.do(Unknown Source)
com.aspose.slides.internal.oe.c9.do(Unknown Source)
com.aspose.slides.internal.oe.fj.do(Unknown Source)
com.aspose.slides.internal.oe.fk.do(Unknown Source)
com.aspose.slides.internal.oe.fk.do(Unknown Source)
com.aspose.slides.internal.oe.import.do(Unknown Source)
com.aspose.slides.internal.oe.fj.do(Unknown Source)
com.aspose.slides.internal.oe.fk.do(Unknown Source)
com.aspose.slides.internal.oe.fk.do(Unknown Source)
com.aspose.slides.internal.oe.import.do(Unknown Source)
com.aspose.slides.internal.oe.fj.do(Unknown Source)
com.aspose.slides.internal.oe.fk.do(Unknown Source)
com.aspose.slides.internal.oe.fk.do(Unknown Source)
com.aspose.slides.internal.oe.import.do(Unknown Source)
com.aspose.slides.internal.oe.fj.do(Unknown Source)
com.aspose.slides.internal.oe.fk.do(Unknown Source)
com.aspose.slides.internal.oe.fk.do(Unknown Source)
com.aspose.slides.internal.oe.fk.do(Unknown Source)
com.aspose.slides.internal.oe.transient.do(Unknown Source)
com.aspose.slides.internal.oe.fj.do(Unknown Source)
com.aspose.slides.internal.oe.fk.do(Unknown Source)
com.aspose.slides.internal.oe.fk.do(Unknown Source)
com.aspose.slides.internal.oe.import.do(Unknown Source)
com.aspose.slides.internal.oe.fj.do(Unknown Source)
com.aspose.slides.internal.oe.fk.do(Unknown Source)
com.aspose.slides.internal.oe.fk.do(Unknown Source)
com.aspose.slides.internal.oe.e5.do(Unknown Source)
com.aspose.slides.internal.oe.e5.case(Unknown Source)
com.aspose.slides.internal.oe.e5.<init>(Unknown Source)
com.aspose.slides.ale.do(Unknown Source)
com.aspose.slides.Presentation.if(Unknown Source)
com.aspose.slides.Presentation.do(Unknown Source)
com.aspose.slides.Presentation.do(Unknown Source)
com.aspose.slides.Presentation.do(Unknown Source)
com.aspose.slides.Presentation.<init>(Unknown Source)

OS: macOS 13.0.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-22.11-fx

If there is a way to avoid mistakes, please tell me.

@oscarstar,
Thank you for reporting the issue.

I’ve reproduced the problem with reading the PPT files and added a ticket with ID SLIDESJAVA-39054 to our issue-tracking system. We apologize for any inconvenience. Our development team will investigate the case. You will be notified when a new release of Aspose.Slides with a fix is published.

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