Hi!
I detected that some auto shapes are not properly written as SVG. The problem is that the resulting images have wring size.
I used:
- O.S: Ubuntu 20.04.2 LTS
- Java: openjdk 11.0.9.1
- Source PPT: autoshapes3.zip (14.8 KB)
- Resulting SVGs: shapes.zip (6.8 KB)
- Sample code:
IPresentation ppt = new com.aspose.slides.Presentation("/home/users/Downloads/autoshapes3.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);
}