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

Free Support Forum - aspose.com

AutoShape in presentation is written as SVG with wrong size


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
  • 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();
shape.writeAsSvg(new FileOutputStream(new File("/home/user/folder/image.svg")), opts);

Thank you for the query. This is the same issue as described here. Please don’t make duplicates for topics.