Here's the code to reproduce an error.
First I generate a bar chart:
expr = BarChart[{1, 1, 2}]
pic = First@ImportString[ExportString[expr, "PDF"]]
filename = "img.emf"
(the "pic" operation is necessary to preserve formatting when exporting to EMF - I've found this solution here on MMa.SE)
Than I try to export it:
Export[filename <> ".emf", pic, ImageResolution -> 4100]
Large ImageResolution
is a trick to make Mathematica export a vector EMF - another trick I picked up on MMa.SE.
The Export
crashes Mathematica kernel. This bug seems to be BarChart
specific, as I cannot reproduce is if a swap BarChart
for ListPlot
.
I use the newest - 11th version. Any suggestion on how to fix it will be much appreciated.
Export["img.svg", pic, ImageResolution -> 4100]
, svg is closely analogous to emf. $\endgroup$