Connector is not properly written as SVG


#1

Hi!

I detected that some connectors are not properly written as SVG. The problem is that the resulting SVG is cropped when the path has markers.

I used:

  • O.S: Ubuntu 18.04.2 LTS

  • Java: openjdk version “1.8.0_191”

  • Source PPT: test6.zip (24.6 KB)

  • Resulting SVG: image.zip (695 Bytes)

  • 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);
}


#2

@rsalado,

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


#3

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