2

This is a follow up to my related question posted previously.

My .NET application can now successfully convert a VML file to SVG, using the XSLT provided by VectorConverter and the .NET XslTransform class.

For all browsers except IE, the Inkscape command line utility works perfectly well. I get a nice PNG image of my entire SVG drawing. However with IE, the output PNG is only of a very small portion of the input SVG. Has anyone else had this problem?

Community
  • 1
  • 1
Arj
  • 1,981
  • 4
  • 25
  • 45
  • I've never seen this. Could you link to example SVG and PNG files? – jbeard4 May 13 '11 at 00:39
  • @echo-flow, thanks for your comment but I have managed to work around this issue for the time being - see answer below. – Arj May 13 '11 at 14:20

1 Answers1

1

It turns out that code output by the VML --> SVG transformation was missing out the dimensions in the XML tag, as in:

<svg version="1.1" xmlns="http://www.w3.org/2000/svg"
    width="xx" height="yy"> 
</svg>

I got around it by reading the file back, adding the width and height attributes and then re-writing the file. It's not a great solution but it works for the time being, I've still not managed to find the underlying issue - if I do I will post it back here.

Arj
  • 1,981
  • 4
  • 25
  • 45