lewisje / svgweb

Automatically exported from code.google.com/p/svgweb
Other
0 stars 0 forks source link

can't display svg file exported from visio #412

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.create a svg file using visio,the svgweb can't display the file 
well.however,asv can .

Original issue reported on code.google.com by liujuns...@ygsoft.com on 13 Nov 2009 at 2:58

Attachments:

GoogleCodeExporter commented 8 years ago
Well, I see some proprietary elements, marked with the v namespace that refers 
to
SVGExtensions. This is why svgweb fails to display the file.

Original comment by gregorio...@gmail.com on 13 Nov 2009 at 3:05

GoogleCodeExporter commented 8 years ago
Looking through the file it looks like its using an embedded STYLE block, which 
we
don't yet support.

Original comment by bradneub...@gmail.com on 13 Nov 2009 at 7:57

GoogleCodeExporter commented 8 years ago
if i want to use the svg file created by visio,how can i do?
thanks!

Original comment by liujuns...@ygsoft.com on 14 Nov 2009 at 2:55

GoogleCodeExporter commented 8 years ago
In order to display this file, remove the style block definitions like this one:

        .st1
{fill:#000000;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;stroke-w
idth:0.72}

For each element with class="st1" replace it with
style="fill:#000000;stroke:#000000;stroke-linecap:round;stroke-linejoin:round;st
roke-width:0.72"

Do that for all your styles (st1, st2, etc) and it should work.

I am not sure if the alternate namespace tags are a problem, but one way to 
test that
is to remove them. If removing them helps then please file a new Issue with a 
simple
example of that problem.

Original comment by grick23@gmail.com on 29 Nov 2009 at 7:58