> Since this seems to be a hot topic at the moment I thought I might jump > in. To use FOP in the various contexts we need to properly setup the right > interfaces. First we need to determine why and what those interfaces are. > > All of the interfaces are set through the Driver. The Driver is the > central control point for all fo -> pdf etc. transformations.
I'm not so sure right now, if a monolithic Driver class is so good. Maybe we really have a little number of specialized classes for FOP processing that are particularly easy to use. For example an easy one that integrates nicely with JAXP. That could help reducing the support questions on how to embed FOP. Maybe we can have a FOPResult (similar to SAXResult) that people can use. I don't know yet, I'm just trying to gather some thoughts. :-) > Below is a sample of the type of areas and information that needst o pass > to and from FOP: > > User agent > The list of things this needs to supply is on this page, rather badly > formatted: > http://xml.apache.org/fop/design/useragent.html > > > Logging > - logging level > - logging messages of various levels > - error handling > > XML input > - various ways to supply FOP with the xsl:fo file > - sax handler > > general options > - base directory > - uri resolvers > > renderer options > - embedding fonts > - compression in pdf > - image embedding for the PS renderer (eventually): - PostScript Level - PPD to use - binary/ascii switch FOP's component setup: which implementation of a particular LayoutManager to use, Logging setup (LogKit, Log4J, JDK14Logging), etc. Output from FOP: - Generation statistics: Number of pages total, Number of pages of each page-sequence, page-master used for each page (could be used to control the paper bin to get paper from, important for me in conjunction with PS Renderer). > The Driver handles the XML input. > The user agent information is through the FOUserAgent. > We could handle logging through the user agent. > Options could also be handled through the user agent, using mime type > selection for renderer options. May I add that it might be nice if we could render to more than one renderer at once (maybe not from the command line). Two independent sources have asked me in the last few weeks if this works. I must say that this would be nice, since I could generate a PDF for the archive and the PS for the printer in one run. It would probably be faster than converting the PDF to PostScript afterwards. > So, what do people think. What other information will be needed. Maybe there's more... Cheers, Jeremias Märki mailto:[EMAIL PROTECTED] OUTLINE AG Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern Fon +41 41 317 20 20 - Fax +41 41 317 20 29 Internet http://www.outline.ch --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]