You just want to convert SVG to PDF? Then it's MUCH easier if you just used FOP's PDF transcoder. The transcoder is a Batik plug-in that adds PDF output support. The URL below is an example Java class I recently added to demonstrate converting SVG to PDF using the PDF transcoder. The PDF transcoder is included in Batik's current distribution (Version 1.5beta4). Just ask again if you need more help.
http://cvs.apache.org/viewcvs.cgi/xml-fop/examples/embedding/java/embedding/ExampleSVG2PDF.java?rev=1.1&content-type=text/vnd.viewcvs-markup Also look at this: http://xml.apache.org/batik/rasterizerTutorial.html http://xml.apache.org/batik/svgrasterizer.html On 09.04.2003 14:06:17 Leet, Ethan C wrote: > > I am looking for suggestions ? > > I build a SVG DOM Tree. > > I would need to translate the SVG DOM tree into a FOP DOM tree, > before I can run FOP right ? > > Please, any help would be greatful, I don't want to fiddle with > anything if I don't need to. > > Thanks > > > -----Original Message----- > From: J.Pietschmann [mailto:[EMAIL PROTECTED] > Sent: Tuesday, April 08, 2003 5:41 PM > To: [EMAIL PROTECTED] > Subject: Re: PDFRenderer. > > > Leet, Ethan C wrote: > > Page.getBody().getMainReferenceArea().addChild(SVGArea); > > I highly suspect you'll have to add a block area and probably also a > line area and ultimately add the SVG to the latter. > You can check how a working area tree looks like by rendering a simple > FO file with the SVG first to PDF (to check whether it works) and then > as XML output. > > BTW why do you fiddle with areas? Building a DOM tree and running > FOP on it should be much easier. Jeremias Maerki --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
