Bug introduced in 12.0 or earlier

For some reason EMF vector image export deteriorates with every version.

In v12.0 for Windows create a simple BarChart:

x = Range@3
b = (BarChart[{x, x}] )

Attempt to Export it to EMF:

Export["emfsaga.emf", b]

This produces a rasterized version, which is an issue known for 5 years to the community.

Okay, use the 'huge ImageResolution' trick to force vector output, which was suggested and discusses as a solution almost 10 year ago:

Export["emfsaga.emf", b, ImageResolution -> 8000]

Which worked previously, but now produces the chart which only displays part of the BarChart:

enter image description here

Older solution which relied on removing Opacity no longer works.

What is the new way to properly export EMF in v12?

update 2019-05-21 I'm slightly hesitant posting this because posting any solution to the EMF export problem results in the latter being made ineffective in the future versions of Mathematica.

So if you desperately need to output EMF (like me) then one way is

  • Install Inkscape
  • Export charts as pdf
  • Convert PDFs to EMFs for example with this functions
    inkpath="\"C:\\Program Files\\Inkscape\\inkscape.exe\"",
        Run["\"" <> inkpath <> " -f=\""<>path<>".pdf\"" <> " --export-emf=\""<>path<>".emf\"\""]


The limitations is that Inkscape does not properly handle Opacity/transparency.

  • $\begingroup$ Please do not use the bugs when posting new questions (please read the tag description). I assume that if you are confident you found a bug, you already reported it to Wolfram? $\endgroup$
    – Szabolcs
    Commented Apr 17, 2019 at 13:05
  • $\begingroup$ @Szabolcs, I'm pretty sure, yes. Already reporting - but it is basically futile. I've already done that several times (the export to EMF is broken since v11) with no results except for lengthy email exchanges. $\endgroup$
    – iav
    Commented Apr 17, 2019 at 13:08
  • $\begingroup$ reported to support $\endgroup$
    – iav
    Commented Apr 17, 2019 at 13:24
  • 2
    $\begingroup$ if it is relevant case number is 3935055 $\endgroup$
    – iav
    Commented Apr 17, 2019 at 13:45
  • 1
    $\begingroup$ The trick with removing Opacity still works for me with version 12.0 on Windows 7 x64. $\endgroup$ Commented Nov 4, 2019 at 14:26


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.