From b13d4136a30fdc4b4b63d32bda2cdec62a763e29 Mon Sep 17 00:00:00 2001
From: jtauber
An XML parser which supports DOM like + Xerces-J.
+Some of the Java source code in FOP is generated from XML using XSLT. XT must be used to generate this code.
XT is an XSL stylesheet processor written in java. At the moment you @@ -69,7 +76,7 @@ Usage of attributes:
Under windows it has been reported that the use of the cygnus solutions port of the GNU utilities works. You can find it at Cygnus Solutions @@ -78,13 +85,16 @@ Usage of attributes:
Following software must be installed:
a) Java 1.1.x or later
-b) A sax parser like XP.
+b) An XML parser which supports SAX and DOM like + Xerces-J.
c) If you have to produce the flow objects files, which are the input for FOP, you need a transformation utility to create this files from your xml files. Normally this is an XSLT stylesheet processor like @@ -94,7 +104,15 @@ Usage of attributes:
There are two ways of running FOP from the command line.
+There are three ways of running FOP from the command line.
+a) Batch processing formatting object files:
+java org.apache.fop.apps.CommandLine fo-file pdf-file
+b) Batch processing xml files (includes production of the fo-files):
+java org.apache.fop.apps.CommandLine xml-file xsl-file pdf-file
+c) Previewing the fo-file:
+java org.apache.fop.apps.AWTCommandLine fo-file
+Each method uses next to the fop classes other packages. The following describes + each method in detail.
One is to first use an XSLT engine to produce the formatting object tree as an @@ -105,8 +123,12 @@ Usage of attributes:
java -cp fop_x_xx_x.jar;sax.jar;xp.jar
org.apache.fop.apps.CommandLine formatting-tree-file pdf-file
If your SAX Parser is other than XP, you will need to set the property - org.xml.sax.parser to the SAX Parser class to use. + org.xml.sax.parser to the SAX Parser class to use. The following example shows + the command line, if you use Xerces, the xml parser from xml.apache.org:
+java -Dorg.xml.sax.parser=org.apache.xerces.parsers.SAXParser
+-cp fop_x_xx_x.jar;xerces.jar
+org.apache.fop.apps.AWTCommandLine formatting-tree-file pdf-file
Again, if your SAX Parser is other than XP, you will need to set the property org.xml.sax.parser to the SAX Parser class to use.
+If you already produced the FO file, you can preview the results of your + transformation without using any pdf viewer by invoking FOP with the viewer + application. You will need to include FOP, SAX and your SAX Parser in your classpath +
+java org.apache.fop.apps.AWTCommandLine formatting-tree-file
Note: If you are using java 2 or later (i.e. jdk 1.2. or later) you can put all needed jar files into the subdirectory jdk1.2.x\jre\lib\ext (windows example). Then FOP can be started without classpath:
-java org.apache.fop.apps.CommandLine formatting-tree-file pdf-file
+java org.apache.fop.apps.CommandLine fo-file pdf-file
Also see STATUS for what is being worked on.
@@ -207,15 +239,24 @@ Usage of attributes:text-indent
href
column-width
+background-color
+padding-top (only in conjunction with background color)
+padding-left (only in conjunction with background color)
+padding-bottom (only in conjunction with background color)
+padding-right (only in conjunction with background color)
see STATUS file