Hi!
I detected that some auto shapes have differences between the size returned by corresponding “getWidth()” and “getHeight()” methods, and the size used when writting as SVG.
I used:
- O.S: Ubuntu 20.04.2 LTS
- Java: openjdk 11.0.9.1
- Source PPT: autoshapes2.zip (14.8 KB)
- Resulting SVGs: shapes.zip (10.7 KB)
- Sample code:
IPresentation ppt = new com.aspose.slides.Presentation("/home/users/Downloads/autoshapes2.pptx");
/**
Code to license
**/
for (IShape shape : ppt.getSlides().get_Item(0).getShapes()) {
SVGOptions opts = new SVGOptions();
opts.setPicturesCompression(0);
System.out.println(shape.getWidth());
System.out.println(shape.getHeight());
shape.writeAsSvg(new FileOutputStream(new File("/home/user/folder/image.svg")), opts);
}