This section provides installation information of Apache FOP (Formatting Objects Processor).
After a quick research on the Internet, FOP (Formatting Objects Processor) seems to be
the most popular XSL-FO processor. So here is how to download and install FOP.
1. Go to http://xml.apache.org/dist/fop/ and download fop-0.20.5rc2-bin.tar.gz
2. Open fop-0.20.5rc2-bin.tar.gz with WinZIP and extract everything to directory, like
\local\fop-0.20.5rc2.
3. Create a batch file, fop.bat, with following command:
Make sure that you enter everything into one line, and leave no space between the .jar file
names. Because of the screen limitation, I have to split the command into multiple lines.
Now run the batch file in a command window. If you are getting the following:
fop
USAGE
Fop [options] [-fo|-xml] infile [-xsl file] [-awt|-pdf|-mif
|-pcl|-ps|-txt|-at|-print] <outfile>
[OPTIONS]
-d debug mode
-x dump configuration settings
-q quiet mode
-c cfg.xml use additional configuration file cfg.xml
-l lang the language to use for user information
-s for area tree XML, down to block areas only
...
the installation is ok.
You may have trouble to run the batch file, fop.bat, if you don't have Java installed properly
on your system.
According to the documentation, FOP can be used to:
Format an XSL-FO file to a .txt, .pdf, or .ps file.
Transform and format an XML file and an XSLT file to a .txt, .pdf, or .ps file.
".pdf" is called Portable Document Format (PDF), and ".ps" is called PostScript (PS).