Hi!
I detected that some auto shapes are not properly written as SVG. The problem is that the resulting images are cropped in one side.
I used:
- O.S: Ubuntu 20.04.1 LTS
- Java: openjdk 11.0.9.1
- Source PPT: autoshapes.zip (65.2 KB)
- Resulting SVGs: shapes.zip (98.5 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();
opts.setPicturesCompression(0);
shape.writeAsSvg(new FileOutputStream(new File("/home/user/folder/image.svg")), opts);
}