[reportlab-users] problem with renderSVG
Dinu Gherman
reportlab-users@reportlab.com
Mon, 6 Oct 2003 11:53:42 +0200
Dirk Datzert:
> I have a strange problem with renderSVG. I detected this in use with
> polyLines, but I think that it is a general problem in renderSVG.
> If you look at the demo5.png you can see what the graphic should look
> like. And in demo5.py is the corresponding python code which create
> all neccessary objects. [...]
Before diving deeper into this: in your SVG output I can see the
areas you don't want to be filled. If I'm running your sample,
though, with a little modification to generate the SVG, too, I
can't see these areas in the SVG!
Look at demo5a.py and my renderSVG.py which should not be any
different from yours (1.18 I assume) in the following tarball,
but you never know (ignore the umlaut issues):
http://python.net/~gherman/tmp/demo5a.tar.gz
Before investigating any further we should find out why we seem
to have different SVG output! The two SVG files also look quite
different in other aspects, like attribute order and, perhaps,
element ordering.
Maybe there is something going on on the DOM implementation level?
I remember I recently installed PyXML 0.8.3, which might be some
reason... Let's start hunting!
Dinu
PS: Everybody else, please don't post samples unless they can be
sent compressed to less than 10-20 KB. The recent spam attacks
lead to harsh filters being applied, also by size.
--
Dinu C. Gherman
......................................................................
"Journalism largely consists of saying 'Lord Jones is Dead' to people
who never knew that Lord Jones was alive." (G. K. Chesterton)