Author Topic: problems converting EMF to MS office drawing objects  (Read 5020 times)

June 29, 2017, 01:36:43 PM
Read 5020 times

kalu86

  • Sr. Newbie

  • Offline
  • **

  • 3
Hi together,

i have an issue with images i did draw in inkscape and exported as EMF. I need to use them in Word2016 (id love to work with LO and use the native svg format but unfortunately thats not possible for me). And i need them as HQ vector files^^ Some of the EMF can be "ungrouped" in Word and thereby converted to a "Microsoft Office Drawing Object" (the whole process is shown here ). This is pretty nice because after conversion the image seems to be handled as a vector (e.g. no pixels in as pdf exported word document). But here is my problem:

While this workaround works with some of my EMF, there are some other EMF that i just cannot convert into such an above mentioned MS office drawing object. When i ungroup basically nothing happens. What is the reason some EMF are convertable and others are not? Is there a rule how to create a convertable EMF? Most of my EMF are simple graphs or plots. No gradients but text (which i export as text-to-path when creating the EMF).

I dont know if someone had a similar problem but id be really happy to get some help or advice!

Thx in advance :)

June 29, 2017, 03:36:39 PM
Reply #1

brynn

  • Administrator

  • Offline
  • ******

  • 3,941
  • Gender
    Female

    Female
    • Inkscape Community
Welcome to the forum!

I don't have any experience with either EMF or importing images into Word.  But the first thing I would do is choose a few of the images which work properly, and few which don't, and then examine them to find out if they have anything in common.

If you'd like to upload a couple of "good" ones, and a couple of "bad" ones, we can look into them to find out if there are any clues.  However, you would need too share the SVG files, not EMF, because not everyone is set up to handle EMF files.

Or maybe someone else already has some insight about this?  That's what I would do, but someone else may have knowledge that I don't have.
  • Inkscape version 0.92.3
  • Windows 7 Pro, 64-bit
Inkscape Tutorials (and manuals)                      Inkscape Community Gallery                        Inkscape for Cutting Design                     



"Be ashamed to die until you have won some victory for humanity" - Horace Mann                       

June 29, 2017, 04:12:59 PM
Reply #2

Lazur

  • IC Mentor

  • Offline
  • ******
  • Inkscape Filters Wizard

  • 1,154
  • Gender
    Male

    Male
Hi.

Have no experience with emf myself, so just guessing.
Inkscape's svg format is sort of a container format.
Are you sure your problematic files don't consist of embedded raster images?
If they are full vector, the svg file could have the content inside a pattern fill -though very unlikely.
Maybe they are symbols/clones.

June 29, 2017, 04:58:49 PM
Reply #3

kalu86

  • Sr. Newbie

  • Offline
  • **

  • 3
Hi guys and thank you for the warm welcome :)

Also thanks for your quick responses and your helpful hints - actually after thinking about the problematic images - i have to say some parts of the image originate from png files that were simply integrated into Inkscape by drag and drop. Maybe thats a/the problem? I am drawing large electric circuit diagrams and unfortunately the total images contain a lot of stuff hat i added directly in Inkscape and I cannot distinguish between the parts that originate from png and which I drew by myself in Inkscape. I use Inkscape a lot but that that’s to deep for my skills^^. Is there any chance to highlight or flag problematic drawing parts? Or any other process I can do to figure out which parts need to be replaced in order to create an “unproblematic EMF”?

Thanks a lot!


edit: just want to clarify there are no embedded BMP or raster graphics and pixels or something like this. But what i did was i used some real vector pngs and added them to my total drawing (e.g. a special circuit symbol).

June 29, 2017, 09:25:57 PM
Reply #4

brynn

  • Administrator

  • Offline
  • ******

  • 3,941
  • Gender
    Female

    Female
    • Inkscape Community
Hhm, it would seem you might have some confusion about the PNG format.  There's no such thing as a "vector PNG".  PNG is a raster format.  So that would seem to be a dead giveaway as the source of at least one problem.

Actually, yes you CAN distinguish between raster images and vector content.  Let me introduce you to the status bar!  When the Selection tool is enabled, and an object is selected, the status bar tells you what kind of object it is.  So if you select something, and the status bar says "Image....." that is a PNG.  If it says "Path" it is vector.  If it says "Group" it might or might not be vector.  You'd have to either Ungroup, to be able to select each object; or you can enter the group, and select individual objects without ungrouping.  Once you've identified a selection as a group, double-click on it, and you will be inside the group, and able to select individual objects.

Depending on what's in the PNG, you might be able to auto trace using Path menu > Trace Bitmap, which would convert it to paths.  Not all raster images can be converted to vector with acceptable quality, but often they can.  Or if they PNGs are some kind of symbol or other text, you could recreate with Inkscape easily.

If you can show us an SVG file, we could give you an idea about whether the PNGs could be successfully auto-traced.
  • Inkscape version 0.92.3
  • Windows 7 Pro, 64-bit
Inkscape Tutorials (and manuals)                      Inkscape Community Gallery                        Inkscape for Cutting Design                     



"Be ashamed to die until you have won some victory for humanity" - Horace Mann                       

June 30, 2017, 12:36:53 AM
Reply #5

Lazur

  • IC Mentor

  • Offline
  • ******
  • Inkscape Filters Wizard

  • 1,154
  • Gender
    Male

    Male
If you change the rendering mode to outlines only it will be very clear which part is png and which is not (Ctrl+5 twice on the numpad).
They are marked with rectalgles crossed with a red X.

Then, if you are using the current stabile you can select one, and in the edit menu
select same by object type -by looking at the status bar after, you can at least count how many raster images you need to trace and delete.

June 30, 2017, 01:53:49 AM
Reply #6

kalu86

  • Sr. Newbie

  • Offline
  • **

  • 3
Hi and thanks again for your help!

I am really sorry for the confusion; damn misspelling – i meant PDF, not PNG! Some parts originate from PDF. I imported them by drag and drop and used them as described above. Sometimes (e.g. when they have color fillings containing gradients) it might be the case, that there is a layer that is a raster format. In that case I directly delete this, draw a new object with the same shape and do my own color fillings (I don’t use gradients at all).

Unfortunately, I cannot upload the pictures (they are for my thesis). But when I select the whole drawing, it says “771 Objects, 7 Types”. Some are paths, some are lines, ellipses, squares, circles, text etc. But no PNG or BMP or something like this!

Ok what I now try is selecting the whole image, ungroup everything a couple of times and execute “objects to path” and “strokes to path”. Now it says: “711 Paths”. Ok that looks good so far. Now I again export as EMF and try to convert in MS office ….and now (uh I am excited)…. it works!!

That’s great  I'll perfom this now for all of my "problematic images".

Ok so to do this everything must be path only! I guess this procedure will also help some other office users to get vector images into their word/PP/whatever documents. You need to do some postprocessing in office to get the original look of your image but in the end the result is imho convenient.

Also, thx for the hint how to easily detect PNG parts – that is a really cool feature!

July 01, 2017, 03:53:30 PM
Reply #7

brynn

  • Administrator

  • Offline
  • ******

  • 3,941
  • Gender
    Female

    Female
    • Inkscape Community
Oh, well that's a different story.  There actually IS such a thing as a vector PDF!

I'm glad you got it all figured out.  Yes, we do get people posting from time to time, who want to put images from Inkscape into Word.  So maybe this will be helpful for them.

Good luck with your thesis  :)
  • Inkscape version 0.92.3
  • Windows 7 Pro, 64-bit
Inkscape Tutorials (and manuals)                      Inkscape Community Gallery                        Inkscape for Cutting Design                     



"Be ashamed to die until you have won some victory for humanity" - Horace Mann