I'm trying to export SVG to HTML, but this is a bit annoying: you can't
set the size of the SVG in HTML. This is because the SVG has to be
embedded in an <object> tag. If you put a size on the object tag, the
object itself is resized, and the SVG in it is not. Scrollbars are added
so you can view the entire SVG. See the attached example in Firefox.
Solutions:
1. Use javascript to resize the svg, like here:
http://www.unet.univie.ac.at/~a9900479/svg4tom/svg4tom1.html
NOTE: this involves adding js to *BOTH* the HTML and SVG data!
2. Leave it as it, ie. with the scrollbars
3. Export a PNG representation of the SVG, which does have the right
size.
Comments?
Marc
This archive was generated by hypermail 2.1.8 : Tue Jul 14 2009 - 12:08:11 CEST