ObeoNetwork / M2Doc

The M2Doc technology enables the generation of Office Open XML documents from models.
http://obeonetwork.github.io/M2Doc/
Eclipse Public License 2.0
38 stars 22 forks source link

Add support for SVG. #482

Closed ylussaud closed 1 year ago

ylussaud commented 1 year ago

In last versions of MS Word, SVG are supported and add a png for backward compatibility. At the moment Apache POI doesn't support the insertion of SVG images. The idea is to convert the SVG to a PNG on when inserting SVG image with M2Doc. This is a first step until Apache POI provides support for SVG.

jmauersberger commented 1 year ago

Why not converting it to WMF/EMF? Not sure whether there is any converter though,,,

ylussaud commented 1 year ago

That's something I'm looking at. I'm trying different libraries...

jmauersberger commented 1 year ago

I remember that we used FreeHEP in the past but stopped using it for some reason. We currently avoid generating SVG but generate EMF/WMF directly from GMF diagrams using GDI+ (unfortunately platform specific).

ylussaud commented 1 year ago

Everything seems to point to the FreeHEP graphics. I'll give it a try.

jmauersberger commented 1 year ago

Cool. Transparency wasn't properly supported, if I remember correctly. Plus other graphical glitches.