|
Apache FOP
Product Name: Apache FOP
Author: The Apache Software Foundation
Website: http://xml.apache.org/fop/
Download Location: http://xml.apache.org/fop/download.html
User Tool Settings
Command Line: |
fop |
Arguments: |
|
To generate PDF from XML: |
-xml "$(FilePath)" -xsl "$(FileTitle).xsl" -pdf "$(FileTitle).pdf" |
To generate PDF from xsl:fo: |
"$(FilePath)" -pdf "$(FileTitle).pdf" |
To generate SVG from XML: |
-xml "$(FilePath)" -xsl "$(FileTitle).xsl" -svg "$(FileTitle).svg" |
To generate SVG from xsl:fo: |
"$(FilePath)" -svg "$(FileTitle).svg" |
Initial Directory: |
$(FileDir) |
Options: |
Capture Output in Tool View
|
Comments
To use Apache FOP to generate PDF or SVG, create a new User Tool and enter the Command Line, Arguments, Working Directory and options as shown above.
You must have the Java Runtime Environment installed to use Apache FOP. See the Apache FOP documentation for more details.
You will also need to set the JAVA_HOME environment variable to the location of your Java Runtime Environment, for example:
C:\Program Files\Java\j2re1.4.2_01
Make sure the following is included in your PATH environment variable:
C:\fop-0.94
If you have installed Apache FOP in a different directory, replace
C:\fop-0.94
with the path where it is installed.
The command lines above will generate PDF or SVG from an XML or XSL:FO file. The output will be saved with a name the same document name but with a .pdf or .svg extension.
For generation directly from XML, the FOP processor first transforms the XML file into a XSL:FO file. The stylesheet is assumed to have the same name as the XML document, but with a .xsl extension.
If this is not appropriate, change the name after the -xsl flag to the filename of your XSL stylesheet.
|
|
|