From: Jeremias Maerki Date: Tue, 28 Mar 2006 18:10:00 +0000 (+0000) Subject: Adjust documentation to changes in outer API (FopFactory etc.). X-Git-Tag: fop-0_92-beta~40 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b35110bf72bb90cd1aea4636cac4768e7df19957;p=xmlgraphics-fop.git Adjust documentation to changes in outer API (FopFactory etc.). git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@389563 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/documentation/content/xdocs/trunk/embedding.xml b/src/documentation/content/xdocs/trunk/embedding.xml index 82ce4a065..db41a7998 100644 --- a/src/documentation/content/xdocs/trunk/embedding.xml +++ b/src/documentation/content/xdocs/trunk/embedding.xml @@ -32,15 +32,22 @@ to embedded applications as well as command-line use, such as options and performance.

- To embed Apache FOP in your application, instantiate org.apache.fop.apps.Fop. - You'll tell FOP in the constructor which output format (i.e. Renderer) to use. - Afterwards, you'll set the OutputStream to use to output the results of the - rendering (where applicable). You can customize FOP's behaviour by supplying + To embed Apache FOP in your application, instantiate a new org.apache.fop.apps.FopFactory + instance and create a new org.apache.fop.apps.Fop instance through one of the factory + methods of FopFactory. There, you can specify which output format (i.e. Renderer) to use + and you can optionally set the OutputStream to use to output the results of the + rendering. You can customize FOP's behaviour by supplying your own FOUserAgent instance. The FOUserAgent can, for example, be used to set your own Renderer instance (details below). Finally, you retrieve a SAX DefaultHandler instance from the Fop instance to which you can send your FO file.

+ + We recently changed FOP's outer API to what we consider the final API. This might require + some changes in your application. The main reasons for these changes were performance + improvements due to better reuse of reusable objects and reduced use of static variables + for added flexibility in complex environments. +
Basic Usage Pattern @@ -52,32 +59,36 @@

Here is the basic pattern to render an XSL-FO file to PDF:

Multithreading FOP

Apache FOP may currently not be completely thread safe. - FOP uses some static variables (for example for the image cache). This code - has not been fully tested for multi-threading issues, yet. + The code has not been fully tested for multi-threading issues, yet. + If you encounter any suspicious behaviour, please notify us.

There is also a known issue with fonts being jumbled between threads when using diff --git a/src/documentation/content/xdocs/trunk/intermediate.xml b/src/documentation/content/xdocs/trunk/intermediate.xml index 360766241..ad42f2645 100644 --- a/src/documentation/content/xdocs/trunk/intermediate.xml +++ b/src/documentation/content/xdocs/trunk/intermediate.xml @@ -69,13 +69,15 @@ The basic pattern to parse the IF format looks like this:

+ \ No newline at end of file diff --git a/src/documentation/skinconf.xml b/src/documentation/skinconf.xml index b1128d267..1083dd438 100644 --- a/src/documentation/skinconf.xml +++ b/src/documentation/skinconf.xml @@ -90,7 +90,7 @@ which will be used to configure the chosen Forrest skin. - 1999-2005 + 1999-2006 The Apache Software Foundation.