kakwa / libvisio2svg

Library/Tools to convert Microsoft (MS) Visio documents (VSS and VSD) to SVG
GNU General Public License v2.0
112 stars 21 forks source link

vss files partially unconverted #6

Closed mscdex closed 7 years ago

mscdex commented 7 years ago

I noticed while converting a vss file that while the output files are indeed svg, the main content for some of the resulting files merely contain an image tag whose contents are still base64-encoded image/wmf data. One such example vss that exhibits this behavior is this one.

Running the vss2svg command resulted in no output to the terminal, so no errors were displayed or anything.

kakwa commented 7 years ago

My library only handles the EMF blobs, not the WMF blobs.

For reference, the beginning of the emf blob conversion: https://github.com/kakwa/libvisio2svg/blob/master/src/lib/visio2svg/Visio2Svg.cpp#L232

The idea to fix the issue would be to use: http://wvware.sourceforge.net/libwmf.html

mscdex commented 7 years ago

Ah ok, I totally missed that part and confused the two types.

EDIT: I just found out that Inkscape can import wmf directly, so I will probably just decode the base64 for each file and edit the resulting wmf files in Inkscape

kakwa commented 7 years ago

Just for reference, I'm starting to take a look on adding wmf conversion handling

kakwa commented 7 years ago

support for wmf blobs added with version 0.5.0

mscdex commented 7 years ago

Awesome, thanks!