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:
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
InkscapeConvert[path_]:=Module[{
inkpath="\"C:\\Program Files\\Inkscape\\inkscape.exe\"",
command
},
Run["\"" <> inkpath <> " -f=\""<>path<>".pdf\"" <> " --export-emf=\""<>path<>".emf\"\""]
]
The limitations is that Inkscape does not properly handle Opacity/transparency.
Opacity
still works for me with version 12.0 on Windows 7 x64. $\endgroup$