Free Support Forum -

EMF image in presentation is cropped in exported SVG (Java)


I detected that some EMF images are not properly written as SVG. The problem is that the resulting image is cropped in one side.

I used:

  • O.S: Ubuntu 18.04.2 LTS

  • Java: openjdk version “1.8.0_191”

  • Source PPT: (246.2 KB)

  • Resulting SVG: (4.4 KB)

  • Sample code:

IPresentation ppt = new com.aspose.slides.Presentation("/home/users/Downloads/cropcircle.pptx");

Code to license

for (IShape shape : ppt.getSlides().get_Item(0).getShapes()) {
SVGOptions opts = new SVGOptions();
shape.writeAsSvg(new FileOutputStream(new File("/home/user/folder/image.svg")), opts);


I have worked with the presentation file shared by you and have been able to observe the issue specified. An issue with ID SLIDESJAVA-37566 has been created in our issue tracking system to further investigate and resolve the issue. This thread has been linked with the issue so that you may be notified once the issue will be fixed.

Do you have plan add convertor from PPTX to JPEG?

No, a PPTX-JPEG conversor is not my plan :wink:


I have observed your comments. Can you please visit this documentation link. This will help you to achieve your requirements.

I have one more question. Is it poassible load SVG file as new slide or load it to exist slide?


I regret to inform that it is not possible using Aspose.Slides.

The issues you have found earlier (filed as SLIDESJAVA-37566) have been fixed in this update.