SVG to WMF

Using Inkscape with other software? Talk about it here.

SVG to WMF

Postby Douglas Acosta » Tue Mar 11, 2008 2:24 am

Hello,

I thought that exporting SVG to WMF (Windows Metafile) would be an easy task using Inkscape because it actually supports exporting to EMF (Enhanced Metafile), but it did not.

I do not why but the EMF export is not working as expected, for instance, exporting a color-filled circle result in an empty circle in EMF.

After several trials I get acceptable results by first exporting the SVG file to ODG (OpenDocument Drawing), then in OpenOffice export the drawing to the desired WMF fileformat.

I do not know if this process could be automated, if someone could do that would be really great.

Best regards, and Inkscape rules!!

Douglas
Douglas Acosta
 

Re: SVG to WMF

Postby sas » Tue Mar 11, 2008 3:23 am

Douglas Acosta wrote:exporting a color-filled circle result in an empty circle in EMF.

I get a colour-filled circle, both in Inkscape 0.45.1 and in Inkscape 0.46pre3. Which version of Inkscape are you using?

As for converting SVG to WMF, you might like to try UniConvertor, which claims to be able to do this. I don't know how well it works.

Development versions of Inkscape now rely on UniConvertor for CDR and WMF import, so WMF export may be added in the same way before long.
User avatar
sas
 
Posts: 404
Joined: Sat Oct 06, 2007 5:42 am

Re: SVG to WMF

Postby microUgly » Tue Mar 11, 2008 9:22 am

If your circle fill used any transparency, that may be why it didn't appear in the EPS version. EPS doesn't support transparency.
User avatar
microUgly
Site Admin
 
Posts: 2975
Joined: Sat Jun 02, 2007 3:13 pm

Re: SVG to WMF

Postby sas » Tue Mar 11, 2008 6:54 pm

microUgly wrote:If your circle fill used any transparency, that may be why it didn't appear in the EPS version. EPS doesn't support transparency.

Good idea, although it was EMF, not EPS, and I don't know whether EMF supports transparency. But saving as EMF with a low-alpha fill gives an opaque fill in the EMF, so I still can't reproduce the original poster's problem.
User avatar
sas
 
Posts: 404
Joined: Sat Oct 06, 2007 5:42 am

Re: SVG to WMF

Postby Douglas Acosta » Tue Mar 11, 2008 11:51 pm

sas wrote:
Douglas Acosta wrote:exporting a color-filled circle result in an empty circle in EMF.

I get a colour-filled circle, both in Inkscape 0.45.1 and in Inkscape 0.46pre3. Which version of Inkscape are you using?


Hello, thanks for the attention

I am using Inkscape 0.45.1.

The problem is that (in my tests) the Inkscape "EMF file export" function is not working properly

As I told in the first post, I draw a circle (no effects) filled in solid blue, solid black stroke of 1 pixel width.

You are right sas, in both scenarios (exporting from Inkscape and OpenOffice to EMF) the final result is a filled circle, but I need to go inside the picture, the results are different.

1. From Inkscape SVG to EMF file format.

Opening this exported file I get an empty circle using an EMF/WMF editor show that the circle is just a sequence of segments (several shapes) that look like an empty circle.

2. From Inkscape SVG to ODG then from OpenOffice ODG to EMF (I need WMF, for the test the final format is the same)

Opening this exported file with the same EMF/WMF editor show two shapes the perimeter (black) and the blue circle.

Questions:

Why Inkscape exports the circle as a sequence of segments and OpenOffice exports it as a shape?

Could be the EMF/WMF editor that is not reading the exported files correctly, but why I get the result I wanted in the second scenario and I could not get the same results in the first one?

Best regards,

Douglas

P.S. How could I upload the sample files?
Douglas Acosta
 

Re: SVG to WMF

Postby sas » Wed Mar 12, 2008 2:23 am

Douglas Acosta wrote:How could I upload the sample files?

See Where do I upload my images?.

But if Inkscape is producing incorrect EMF output, it would be best to report that on Launchpad. You can attach files there.
User avatar
sas
 
Posts: 404
Joined: Sat Oct 06, 2007 5:42 am

Re: SVG to WMF

Postby Douglas Acosta » Wed Mar 12, 2008 8:23 am

Ok, I have notified as a bug this exportation trouble

But the first question was, is there any way to automate the process of exporting from inkscape to odg and export from openoffice to wmf/emf.

Is there any way to do that in one step?

Regards
Douglas Acosta
 

Re: SVG to WMF

Postby microUgly » Wed Mar 12, 2008 10:23 am

Douglas Acosta wrote:Is there any way to do that in one step?

I don't know about doing it in one step, but you can install SVG Import Filter for OpenOffice and this will save you the step of having to save your SVG as ODG with Inkscape first (I think it's kinda strange OpenOffice doesn't adopt SVG by default).
User avatar
microUgly
Site Admin
 
Posts: 2975
Joined: Sat Jun 02, 2007 3:13 pm

Re: SVG to WMF

Postby hubert » Sun Sep 07, 2008 4:58 am

Hallo!

I have the same problem. Want to convert svg (or better sla) to wmg, but after hour of searching, nothing works. How can I konvert the text to a path? Maybe that could help me a little. Thanks for help!

Lg
hubert
hubert
 

Re: SVG to WMF

Postby microUgly » Sun Sep 07, 2008 1:56 pm

You'll find the "Object to path" option under the "Path" menu.
User avatar
microUgly
Site Admin
 
Posts: 2975
Joined: Sat Jun 02, 2007 3:13 pm


Return to Inkscape & other

Who is online

Users browsing this forum: No registered users and 2 guests