We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Facing problem while inserting SVG into ppt

I am trying to insert svg into ppt. PPT is created but no image is displaying in slide.
It is taking dimension of image . The code is as follow

    Presentation pres = new Presentation();
   IPPImage emfImage = pres.getImages().addFromSvg(readAllBytes(svgPath));
    pres.getSlides().get_Item(0).getShapes().addPictureFrame(ShapeType.Rectangle, 0, 0, emfImage.getWidth(), emfImage.getHeight(), emfImage);
    pres.save("/home/cloudera/Downloads/svgtoppt.pptx", SaveFormat.Pptx);


I have observed your comments. Can you please share source presentation,generated result along with environment details. Also please share which Aspose.Slides version you are using on your end so that we may further investigate to help you out.

Aspose.Slides version is 17.8

svgtoppt.zip (31.9 KB)


I have observed your requirements and like to share that the support for adding the SVG image in presentation is not available in Aspose.Slides and even PowerPoint does not allow to load SVG image in the shapes. If you ought to add the SVG image to slide shapes, you need to first convert that to PNG, JPEG, EMF or BMP using third party APIs and then add them to slide shape as picture frame.