Visio converted to SVG is missing viewbox attr


#1

Hi

We are rewriting our VSD to SVG conversion from using Visio VBA, to your Aspose.Diagrams.

This is going great, but later in the process we found that we have been relying on an attribute in the SVG. This attribute is missing in the newly generate svg’s

The attribute is called ViewBox. Through some testing I’ve found that viewbox is actually “just” the width and height of the diagram in points.

Information about the viewbox can be found on the w3c homepage (https://www.w3.org/TR/SVG11/coords.html#ViewBoxAttribute).

We may be able to work around the missing viewbox, but it would be nice to have an option to get the attribute added when exporting to SVG. (Maybe through the SaveOptions type)

Same diagram from both VBA and you: aspose-viewbox.zip (75.1 KB) (named accordingly)

Regards
Dennis


#2

@hellagutmanndk

Thanks for choosing our API.

We have recorded your concerns and logged a feature request as DIAGRAMNET-51568 in our issue management system. We will further investigate the feasibility of the feature and keep you posted with the status of its implementation. Please spare us little time.

We are sorry for the inconvenience caused.


#3

The issues you have found earlier (filed as DIAGRAMNET-51568) have been fixed in Aspose.Diagram for .NET 18.11.