Arj
Arj

Reputation: 2046

Inkscape not handling SVG properly from command line

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?

Upvotes: 2

Views: 599

Answers (1)

Arj
Arj

Reputation: 2046

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.

Upvotes: 1

Related Questions