We encounter one additional problem with converting vsdx to SVG format. I do a simple transformation via the method Diagram.Save according to documentation (Diagram.Save method).
I attached the original Visio diagram (InputFile.vsdx) and SVG file (OutputFile.svg) obtained after transformation. InputFile.vsdx file contains two embedded simple shapes. After transforming to SVG, one shape disappears from the diagram.
Could you review my files from the attached archive and fix the problem in the next release?
The diagram is being saved with the standard Diagram.Save call, which uses the built‑in SVG exporter. In the current Aspose.Diagram implementation the SVG exporter does not render embedded OLE objects; such objects are simply omitted from the generated SVG file. This is why one of the two embedded shapes disappears after the conversion you performed [0].
Work‑around / alternatives
Export to a raster format (PNG, JPEG, etc.) – the OLE object is rendered as an image in these formats.
var diagram = new Diagram("InputFile.vsdx");
diagram.Save("OutputFile.png", SaveFileFormat.Png);
Export to PDF – the PDF exporter rasterises OLE objects, so they appear in the output.
Extract the OLE object separately using the OLE‑related API (e.g., Diagram.OleObjects) and place it manually in the SVG if you need a pure SVG result.
At present this behavior is a limitation rather than a defect in the conversion logic. The Aspose.Diagram team is aware of the issue and it will be considered for future releases. If you need the OLE object to be present in SVG now, the recommended approach is to use one of the alternatives above.
@krserg
Thanks for the template file and output svg.
After an initial testing, I am able to reproduce the issue as you mentioned by using your template file.We need to evaluate your issue/requirements in detail.
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.
Issue ID(s): DIAGRAMNET-53867
You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.
The issues you have found earlier (filed as DIAGRAMNET-53867) have been fixed in this update. This message was posted using Bugs notification tool by philip.zhou
@krserg
It is great that you were able to resolve this issue on your end. In case you have further inquiries or may need any help in future, please let us know by posting a new thread in Aspose.Diagram’ forum.