# BarLegend rasterized in EMF and EPS export

A while ago you guys gave me a splendid workaround to the rasterization bug in exported BarCharts.

Now I noticed that the workaround is not working for BarLegends. My problem is, that

legend =  BarLegend["Rainbow"]
Export["E:\\test.emf", legend];


produces a clearly rasterized file.

Is there any way to get a vector graphic from this simple plot?

• Obviously, the replacements in the workaround for the bug don't work with BarLegends. – Franz Xaver Feb 4 '15 at 17:57
• It might have something to do with Hold[...] preserving a BarChart in its unexecuted form, but not a BarLegend. – Franz Xaver Feb 4 '15 at 18:11