Re: fop-0.90.alpha1: SVG graphic outside bounds of table cell when using PDF

2005-12-21 Thread Jeremias Maerki
Ryan, you should work with a viewBox attribute on the svg root element. Otherwise, the simple numbers for widths are interpreted as pixels at 72dpi which causes the SVG to appear with a fixed width. Furthermore, it is a good idea to specify the size of the SVG itself as a length (pt, for

Re: fop-0.90.alpha1: SVG graphic outside bounds of table cell when using PDF

2005-12-21 Thread Ryan Gustafson
Jeremias, Thank you, I don't know why those things would actually make a difference, but they do. The following works as a great checkbox, and it positions properly (it's not way off on the left margin of the page in neverneverland): fo:instream-foreign-object

Re: fop-0.90.alpha1: SVG graphic outside bounds of table cell when using PDF

2005-12-21 Thread Jeremias Maerki
Ryan, the viewBox attribute changes the meaning of coordinates without a length unit (pt, mm etc.). If no viewBox is specified the length unit is interpreted as pixels with the resolution in use by the user agent (user agent here = FOP with 72 dpi). Together with explicit length units on width and