draw to convert emf to svg

Loaded a simple diagram, exported it as svg. Text has been preserved. Lines have disappeared.

When opening the .svg I expected to see about the same graphic as when opening the .emf.
Can i have done something wrong? Any help available?

Rolf

you may download the small emf from http://home.august.de/p4.emf

Thank you Grantler.
I should have mentioned that the .emf file is an export on Win7 by the UML program Enterprise Architect version 12.1. (EA). I suppose - but I am not sure - that EA uses Win7 system routines to create .emf files.

.emf on Win7:

  • The .emf file is correctly shown on Win7, e.g. paint (although the font looks ugly) or PowerPoint (better, but font has still problems: letters are too narrow, whole words look like one glyph)

.emf on LibreOffice:

  • The .emf file is correctly shown (e.g. on Linux) with LibreOffice Draw (letters are too narrow, too)

.emf on Inkscape:

  • The graphics is mirrored upside-down and not aligned to the text (the font looks good)

.emf exported by Draw to .svg:

  • by Draw: The .svg is empty when opened.
  • by Inkscape: The .svg shows text only when opened.

.emf converted by Inkscape: inkscape --file emf\p4.emf --export-plain-svg svg\pv-inksc.svg

  • by Draw: graphic is clipped on top, failure of reading the .emf remains and new failure: rectangle with big
    border appeared
  • by Inkscape: Conversion looks good, the failure of reading the .emf remains: upside-down graphic, not aligned

.emf converted by the commercial emf2vector:

  • by Draw: just a black rectangle
  • by Inkscape: best result so far, however, color is wrong and shadow rectangle is not hidden.

My conclusions - also based on your answer Grantler:

  • .emf is usable as a graphics-vector format on MS Windows or using Draw on any OS, it is not convertable to .svg, yet.
  • .svg - although specified by W3C - has no reference implementation, therefore it can not be proved that it works, yet
  • .svg works sufficiently only within one program
  • if you want to use a graphic in different programs, also on Linux or OS-X stick to .png. Vector formats do
    not work, yet.

Kind Regards

Rolf

(sorry for the layout, the editor is too hard to operate)

Experiences

Can i have done something wrong? (Probably yes: you didn’t tell that your emf file was not produced on LibreOffice but on another source program. :wink: )

The downloaded emf file can be losslessly opened on LibreOffice 5.1.6.2. Export to wmf is well shown on Inkscape but not on LibreOffice itself.

Export to the wanted svg format is damaged (on LibreOffice and Inkscape as well).

Inkscape is not able to show the emf file losslessly. It is critically damaged.

The emf file can’t losslessly be converted or be broken on LibreOffice so my assumption is that you have imported the file from another source but not LibreOffice itself (did you mention that?).

There are lots of problems with svg and other formats on LibreOffice if imported from another source program(s). Think about the Wikipedia and its drawings in svg format. Regularly one is not able to edit them satisfyingly.

The only solution of proceeding may be to edit your emf file on its source program or to re-build it on LibreOffice and then to convert it to other file format(s).

cheers