Extracting EMF Image from a PowerPoint Presentation Causes App Crash

Please review the file in the package.
OMT-10.pptx.zip (167.2 KB)
I run the following code:

BufferedImage systemImage = ((IPictureFrame)presentation.getMasters().get_Item(0).getShapes().get_Item(0)).getPictureFormat().getPicture().getImage().getSystemImage();

The line of code run over 45 minutes and crash the app.
I found the image content type is image/x-emf. How to fix the problem? Any help would be grateful.

@oscarstar,
Thank you for contacting support.

I was unable to reproduce the problem you decribed. Please check your results using the latest version of Aspose.Slides if it is possible. If the issue persists, please share the following information:

  • OS version where the code was executed
  • JDK version in your app
  • maximum amount of memory for JVM
  • Aspose.Slides version you used

My environment:
operating system:macOS 12.3.1
VM settings:
Max. Heap Size (Estimated): 16.00G
Using VM: OpenJDK 64-Bit Server VM

openjdk version “17.0.1” 2021-10-19
OpenJDK Runtime Environment (build 17.0.1+12-39)
OpenJDK 64-Bit Server VM (build 17.0.1+12-39, mixed mode, sharing)
Aspose.Slides version: 22.3

The error still occurs.

@oscarstar,
Thank you for the additional information. I added a ticket with ID SLIDESJAVA-38783 to our issue tracking system. We apologize for any inconvenience. Our development team will investigate this case. We will inform you of any progress.

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