You can also convert SVG to PDF directly by using Apache Batik's Transcoder API. For PDF you can use the class org.apache.fop.svg.PDFTranscoder.
See: http://xmlgraphics.apache.org/batik/rasterizerTutorial.html The example here is not the same as the one you reported the problem for. The SVG looks fine in Batik's Squiggle (the SVG browser) and in Acrobat Reader when generated with FOP's PDFTranscoder. The configuration file I'm talking about is described here: http://xmlgraphics.apache.org/fop/latest/configuration.html On 06.04.2006 15:59:48 Mathieu Leplatre wrote: > I use XSL-FO because I didn't know there was another way to do it. > > Here is a svg file : > leplatre.free.fr/pub/arabic.svg > > Here is the XSL I made : > http://leplatre.free.fr/pub/embed.xsl > > ...sorry my question will sound stupid but in which configuration file > can I put this xml-handler tag ? > > Thank you Jeremias for your extremely fast reaction time ! > > Jeremias Maerki wrote: > > It could be a flaw in the PDFTextPainter. If you provide a sample SVG > > file I can verify that. You don't say if you're converting through the > > PDFTranscoder or via XSL-FO. If you go via XSL-FO you can set: > > > > <xml-handler namespace="http://www.w3.org/2000/svg"> > > <stroke-text>true</stroke-text> > > </xml-handler> > > > > ...as a direct child of the "renderer" element for the PDF renderer in > > the configuration file. > > > > The PDFTranscoder currently doesn't support disabling the PDFTextPainter. > > > > Note: The above is only tested on the latest FOP Trunk. I can't > > guarantee without verifying if 0.91beta behaves the same way. > > > > On 06.04.2006 15:27:58 Mathieu Leplatre wrote: > > > >> Hi all, > >> > >> I use fop to convert SVG files to PDF. > >> > >> My SVG contains UTF8 strings in arabic (direction right to left). > >> Encoding and such characters are supported but the words are misplaced > >> (it looks like the origin (x,y) is placed at ( x + lenght, y ). > >> > >> Here is an example to figure it out : > >> http://leplatre.free.fr/pub/examplearabic.png > >> > >> Is it a known bug ? I didn't see anything about this in 0.92 change log... > >> > >> Does someone know a trick for this ? Jeremias Maerki --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
