Okay, this is good. I am picking up on what you are saying.
I have done something similiar when I was building large XML documents with SAX. I had a class implement the SAX ContentHanlder. then parsed and stream all the XML files into the ContentHanlder which created one large XML file. So I need to create my SVG document. Parse it into FOP, that renders this into PDF. I think I got the basic idea. I will think some more on it and then try to put together some classes for testing. Thank you :-) -----Original Message----- From: Jeremias Maerki [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 09, 2003 10:53 AM To: [EMAIL PROTECTED] Subject: Re: PDFRenderer. Hmm, the PDF transcoder is only for one-page documents as far as I know. I wouldn't fiddle with those Area classes. Do it with XSL-FO as Jörg suggested. Try to come up with an XSL-FO or an XSL-FO generating XSLT that puts together the layout you need. This will be a lot easier than trying to make your current approach work. >From what I think you do I'd do it like this: - Create an XMLReader class (see examples/embedding/java/embedding/model/ProjectTeamXMLReader) that creates a SAX stream with your SVG documents along these lines: <doc> <svgdoc> <svg:svg xmlns:svg="http://...... [..] </svg:svg> </svgdoc> <svgdoc> <svg:svg xmlns:svg="http://...... [..] </svg:svg> </svgdoc> </doc> - Write an XSLT that transforms this XML format to XSL:FO with embedded fo:instream-foreign-objects. Tip: To convert a DOM to SAX events you can use org.apache.fop.tools.DocumentReader for example. Just get back again if you need more help. Good luck! On 09.04.2003 16:39:02 Leet, Ethan C wrote: > > I have used PDF Transcoder for one page. > > It works very well. > > But what I am trying to do is create mulitple pages from 2D > graphics. > > My test is to create a PDF document with three pages. > > For each page I create a SVG Document per page. > > Render the SVG document onto the PDF page. > > I don't know how to control the pages using the PDF transcoder. > > Also since this is for a print service for supporting 2 graphics, > > I have to be careful about space, cause the document printing could > be 50 pages. > > Any advice ? > > Right now I am still fiddling with the Areas. Jeremias Maerki --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]