Free Support Forum - aspose.com

Save as SVG without transform

Right now I only need ‘path’ tag of a connector.
I save a diagram with one connector(the connector is from another diagram) as SVG, and the resulting file has multiple transforms wrapping the ‘path’ tag I need.

How do I get rid of these transforms and yet maintain correct geometry?

@sintez

Would you kindly share your sample Diagram and code snippet that you are using. We will test the scenario in our environment and address it accordingly.

var licStream = new MemoryStream(licFile);
var license = new License();
license.SetLicense(licStream);

var d = new Diagram(“test.vsdx”);
d.Save(“test.svg”, SaveFileFormat.SVG);

test.zip (13.3 KB)

@sintez

We have logged an investigation ticket as DIAGRAMNET-51918 in our issue tracking system for your case. We will look into its details and keep you posted with the status of its rectification. Please be patient and spare us some time.

We are sorry for the inconvenience.

@sintez

We have further investigated the earlier logged ticket and found that the transform is used to set the shape position in the whole page. We cannot save .svg without transform. When you are saving to SVG manually using MS Visio, you could find there is transform in it too. Please try to get the tag “path” only in the shape .