Configuring Apache FOP

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.

  1. Download the sample fop.xconf configuration file to a folder of your choice.
  2. 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.
  3. 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"
    <catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog" prefer="public">  
  4. 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.
  5. Add the XML catalog to your PDF (FOP) pipeline configuration.
The specialized Apache FOP configuration options should be used by the PDF pipeline configuration.