The Apache FOP XSL Formatter can be configured using a fop.xconf
configuration file. A
sample configuration file can be downloaded from the Apache FOP svn server and configured to be used in a PDF
pipeline using an XML catalog.
-
Download the sample
fop.xconf
configuration file to a folder of your choice.
-
Edit the sample
fop.xconf
configuration file as required.
Refer to the documentation on the
Apache FOP website
for detailed information about the configuration options.
-
Create a new XML catalog file in a folder of your choice (or use an existing one).
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE catalog PUBLIC "-//OASIS//DTD XML Catalogs V1.1//EN"
"http://www.oasis-open.org/committees/entity/release/1.1/catalog.dtd">
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog" prefer="public">
</catalog>
-
Add a uri entry to the XML catalog to associate the
cpnz:pipeline:xml:fop.xconf URN with the
fop.xconf
configuration
file.
<uri name="cpnz:pipeline:xml:fop.xconf" uri="fop.xconf" />
Note: The path to the fop.xconf
configuration file in the uri attribute
is relative to the XML catalog.
-
Add the XML catalog to your PDF (FOP) pipeline configuration.
The specialized Apache FOP configuration options should be used by the PDF pipeline configuration.