Free Support Forum -

Incomplete picture generated by wirteAsSvg () method (Java)

When I inserted shapes in PowerPoint(15750070833093.png),a part of the generated picture was missing(

PowerPoint source file(


15750070833093.png (884 Bytes) (668 Bytes) (25.4 KB)


I have worked with source file shared by you using Aspose.Slides 19.11 and unable to observe the issue. I have also shared my generated result with you for your kind reference.

I want to write the shape to svg instead of the whole slide.

import com.aspose.slides.IShape;
import com.aspose.slides.Presentation;


public class WriteShape {

    public static void main(String[] args) {
        String basePath = "/Users/chenxiaoni/Documents/slides/";
        Presentation presentation = new Presentation(basePath + "shape.pptx");
        IShape iShape = presentation.getSlides().get_Item(0).getShapes().get_Item(0);
        String sourceName = "media/" + System.nanoTime() + ".svg";
        try {
            FileOutputStream os = new FileOutputStream(basePath + sourceName);
        } catch (FileNotFoundException e) {


Can you please share complete environment details with us so that we may further investigate to help you out. (26.2 KB)
PowerPoint 2016


We need to know environment means which operating system you are using on your end so that we may test on that environment for further investigation.

development environment: Windows 10


Can you please try to use following sample code on your end and share feedback with us.

public static void svgconvert() throws FileNotFoundException{

Presentation presentation = new Presentation(path+“graphics.pptx”);
ISlideCollection slides = presentation.getSlides();

  for (int i = 0; i < slides.size(); i++) {
  	ISlide slide = presentation.getSlides().get_Item(i);

OutputStream out = new FileOutputStream(new File(path+“Java Thumbs\Thumbs\Slide_” + (i + 1) + “.svg”));


I just want shape write as svg.IShape already provides the writeAsSvg () method.Why do you provide sample code for ISlide?


I have worked with the presentation file shared by you and have been able to observe the issue. An issue with ID SLIDEJAVA-37873 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 automatically notified once the issue will be fixed.

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