Seems to be a bug in the SVG part in FOP 0.20.5. The attribute is
respected in the new SVG transcoder (in FOP CVS HEAD), however. If you
only need to convert the SVG into PDF (without any real need for XSL-FO),
you can try the PDF Transcoder for Batik. Try the one shipped with the
latest Batik release or if this still doesn't help, download the FOP
source code from CVS (or using a CVS snapshot) to build the PDF
Transcoder yourself.

On 22.12.2004 10:47:51 Saptarshi Sen wrote:
> The xml:space="preserve" attribute does not seem to have any effect on the
> PDF generated. The SVG image is within a fo:instream-foreign-object tag. I
> could not find any attribute that will preserve white spaces.
> 
> I am attaching a typical fo file that we generate.
> 
> Thanks,
> Saptarshi.
> 
>  <<pieUnicodeSVG.fo>> 
> 
> >  -----Original Message-----
> > From:       Saptarshi Sen  
> > Sent:       Wednesday, December 22, 2004 12:54 PM
> > To: FOP Mailing List (E-mail)
> > Subject:    Handling multiple spaces
> > 
> > Hi,
> >     We are using FOP to convert SVG images into PDF. The SVG images are
> > generated using a tool called PopChart.
> > 
> >     When we view the SVG image, multiple spaces are collapsed into a
> > single space. This can be offset using the xml:space="preserve" attribute
> > in the text tags. Is there any other method by which we can preserve
> > multiple spaces.
> > 
> >     Since I do not have any control over the SVG image produced by
> > PopChart, can I set any parameters during the FOP call? Alternatively, I
> > could include the  xml:space="preserve" attribute in my text tags, but this
> > would be very messy. Is there an easier approach?
> > 
> > Thanks,
> > Saptarshi.



Jeremias Maerki


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

Reply via email to