This project is read-only.

What is the "Drawing Bounds" expected by xaml2emf?

May 4, 2012 at 5:48 PM

I have xaml files created with Inkscape. The files render nicely in IE9. I want to convert them to emf. When I use commandline xaml2emf, I get the following error with each file:

Drawing Bounds: Empty
Une erreur générique s'est produite dans GDI+ (translation: A generic error happened in GDI+)

Here is the base structure of xaml files:

<?xml version="1.0" encoding="UTF-8"?>
<Viewbox xmlns="" Stretch="Uniform">
	<Canvas Name="svg2" Width="333" Height="50">
			[...] ex: LinearGradientBrush
		<Canvas Name="g3205">
			[...] ex: Path
What are the "Drawing Bounds"? Where are they expected to be read?

Oct 3, 2012 at 11:17 AM

After a few tries, I have found out where does the problem come from: xaml2emf does not understand the "Uniform" stretching option of the Viewbox element (line 2). Manually replacing "Uniform" by "None" in each xaml file fixes the problem.