PptxReadException When Reading a PPTX File in Java (Landray RDM EKP-21789)

ppt source code:
src.zip (3.3 KB)

origin ppt files:
url: Filebin | 329owu5hc27uq648

converted error:

Caused by:class com.aspose.slides.PptxReadException: The method or operation is not implemented —> class com.aspose.slides.exceptions.NotImplementedException: The method or operation is not implemented
com.aspose.slides.w0l.x6(Unknown Source)
com.aspose.slides.k4h.x6(Unknown Source)
com.aspose.slides.c5m.x6(Unknown Source)
com.aspose.slides.c5m.x6(Unknown Source)
com.aspose.slides.g1i.x6(Unknown Source)
com.aspose.slides.f6p.x6(Unknown Source)
com.aspose.slides.a5j.x6(Unknown Source)
com.aspose.slides.a5j.x6(Unknown Source)
com.aspose.slides.a5j.x6(Unknown Source)
com.aspose.slides.a5j.x6(Unknown Source)
com.aspose.slides.r0.x6(Unknown Source)
com.aspose.slides.n6h.x6(Unknown Source)
com.aspose.slides.x4k.x6(Unknown Source)
com.aspose.slides.l5u.g1(Unknown Source)
com.aspose.slides.l5u.x6(Unknown Source)
com.aspose.slides.Presentation.r2(Unknown Source)
com.aspose.slides.Presentation.x6(Unknown Source)
com.aspose.slides.Presentation.(Unknown Source)
com.aspose.slides.Presentation.(Unknown Source)

Please have a check.

@hucq_landray_com_cn

Hello,

Thank you for providing the details and the files.
The stack‑trace shows a NotImplementedException thrown by Aspose.Slides while reading the presentation. This usually means that the source PPT contains a feature that is not yet supported by the version of Aspose.Slides you are using (e.g., a specific animation/effect, a custom slide transition, or a shape property).

Below are the steps you can take to identify and resolve the issue.


1. Verify the Aspose.Slides version

Action Reason
Upgrade to the latest Aspose.Slides version (e.g., 24.12 or newer) Many previously unsupported effects have been added in recent releases.
Confirm the version you are using in code (Presentation.class.getPackage().getImplementationVersion()) Helps us reproduce the exact environment.

Example (Maven)

<dependency>
    <groupId>com.aspose</groupId>
    <artifactId>aspose-slides</artifactId>
    <version>24.12</version>   <!-- use the latest version -->
</dependency>

2. Identify the unsupported feature

  1. Open the original PPT in Microsoft PowerPoint (or any PPT viewer) and check:

    • Custom animation effects (e.g., Motion Path, Grow/Shrink with complex parameters)
    • Transition types that are not part of the standard set
    • SmartArt or 3‑D objects that may use proprietary data
  2. Run the conversion with a try‑catch block to capture the exact slide/shape that triggers the exception:

try {
    Presentation pres = new Presentation("input.ppt");
    // your conversion code here
    pres.save("output.pdf", SaveFormat.Pdf);
} catch (Exception ex) {
    System.err.println("Error on slide: " + pres.getSlides().size());
    ex.printStackTrace();
}

If the exception appears after a specific slide number, you can isolate that slide and test it individually.


3. Work‑arounds for known unsupported features

Feature Work‑around
Complex motion/path animations Remove the animation before conversion (PowerPoint → Save AsPowerPoint Show (.ppsx) and then open the file with Aspose.Slides).
Custom transition effects Set the transition to a standard type (e.g., Fade, Push) in PowerPoint, then reconvert.
SmartArt / 3D objects Convert the slide to an image first (pres.getSlides().get(i).getThumbnail()), then embed the image into a new presentation.

4. Provide additional information (if the issue persists)

Please reply with the following so we can reproduce the problem precisely:

Item What to send
Aspose.Slides version The exact version number (e.g., 24.11.0)
Java/.NET runtime details JDK version / .NET Framework version
Relevant code snippet The part where you load the presentation and call save
Exact operation Are you converting to PDF, PPTX, images, etc.?
If possible, a reduced test file A PPT that contains only the problematic slide/effect

You can upload the files directly to the forum (or use a temporary file‑sharing service) and reference them in your reply.


5. Useful documentation links


Next steps

  1. Upgrade to the latest version and test again.
  2. If the error remains, isolate the offending slide/effect using the try‑catch pattern above.
  3. Provide the additional information requested so we can investigate further.

We look forward to your follow‑up and will be happy to help you get the conversion working correctly.

Best regards,
Aspose Support Team

@hucq_landray_com_cn,
Thank you for reporting the issue. I have reproduced the PptxReadException when loading the PowerPoint presentation file with Aspose.Slides for Java 25.8. We apologize for any inconvenience caused.

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

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:

  • The OS version on which the code was executed
  • The JDK target version in your application project