From: William Victor Mote Date: Mon, 14 Apr 2003 03:40:38 +0000 (+0000) Subject: Add
ids. X-Git-Tag: Root_Temp_KnuthStylePageBreaking~1627 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=959939b35d4b461bdc5369429b2522946bad76cd;p=xmlgraphics-fop.git Add
ids. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196254 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/documentation/content/xdocs/embedding.xml b/src/documentation/content/xdocs/embedding.xml index b08fe10be..dbf120aee 100644 --- a/src/documentation/content/xdocs/embedding.xml +++ b/src/documentation/content/xdocs/embedding.xml @@ -11,7 +11,7 @@ -
+
Overview

Instantiate org.apache.fop.apps.Driver. Once this class is instantiated, methods are called to set the @@ -24,7 +24,7 @@ enables runtime determination of Renderer and ElementMapping(s).

-
+
Basics

The simplest way to use Driver is to instantiate it with the InputSource and OutputStream, then set the renderer desired and @@ -148,9 +148,9 @@ issues should be fixed in the upcoming JDK 1.4 and set it on the Driver object. See the existing implementations in Avalon Framework for examples.

-
+
Hints -
+
XML/XSL/DOM Inputs

You may want to supply you input to FOP from different data sources. @@ -169,7 +169,7 @@ will in turn create the rendered output. Examples showing this can be found at the bott

-
+
Object reuse

If FOP is going to be used multiple times within your application @@ -183,7 +183,7 @@ You will need to setup the driver again with a new OutputStream, IntputStream and renderer.

-
+
Getting information on the rendering process

To get the number of pages that were rendered by FOP you can call @@ -331,14 +331,14 @@ Press "OK", then apply the change and restart the application server.

-
+
Examples

The directory "xml-fop/examples/embedding" contains several working examples. In contrast of the examples above the examples here primarily use JAXP for XML access. This may be easier to understand for people familiar with JAXP.

-
+
ExampleFO2PDF.java

This example demonstrates the basic usage pattern to transform an XSL-FO @@ -346,7 +346,7 @@ file to PDF using FOP.

-
+
ExampleXML2FO.java

This example has nothing to do with FOP. It is there to show you how an XML @@ -356,7 +356,7 @@ classpath (ex. Xalan).

-
+
ExampleXML2PDF.java

This example demonstrates how you can convert an arbitrary XML file to PDF @@ -374,7 +374,7 @@ strongly discourage you to do this if it isn't absolutely necessary. The performance is significantly higher with SAX.

-
+
ExampleObj2XML.java

This example is a preparatory example for the next one. It's an example that @@ -405,7 +405,7 @@ used. For more detailed information see other resources on JAXP (ex. An older JAXP tutorial).

-
+
ExampleObj2PDF.java

The last example here combines the previous and the third to demonstrate @@ -416,7 +416,7 @@ using FOP as before.

-
+
Final notes

These examples should give you an idea of what's possible. It should be easy