What is the "Drawing Bounds" expected by xaml2emf?

May 4, 2012 at 4: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="http://schemas.microsoft.com/winfx/2006/xaml/presentation" Stretch="Uniform">
	<Canvas Name="svg2" Width="333" Height="50">
		<Canvas.Resources>
			[...] ex: LinearGradientBrush
		</Canvas.Resources>
		<Canvas Name="g3205">
			[...] ex: Path
		</Canvas>
	</Canvas>
</Viewbox>
What are the "Drawing Bounds"? Where are they expected to be read?

Oct 3, 2012 at 10: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.