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 example). A very simple example:

<svg width="11pt" height="11pt" viewBox="0 0 20 20">
  <g style="fill:red; stroke:#000000">
     <rect x="0" y="0" width="15" height="15"/>
     <rect x="5" y="5" width="15" height="15"/>
  </g>
</svg>

Furthermore, if you want the SVG to be fit into the box you define using
instream-foreign-object you should specify content-width="scale-to-fit".
Otherwise the SVG is simply matched into the upper left corner of the
i-f-o's box at the default size.

I hope that helps.

On 21.12.2005 22:31:02 Ryan Gustafson wrote:
> Hello,
> 
> I'm using fop-0.90.alpha1.
> 
> The following is a sample XSL-FO document which when converted to
> PDF results in the SVG graphic on the last row of the table being
> outside the bounds of the table cells.  Notice the other identical
> graphics which correctly render inside the bounds of the table
> cells.
> 
> Feel free to contact me for further details if needed.  I can
> provide the PDF being generated if requested.


Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to