FOP CONFIGURATION

  

Virtual Machine  

 

The PROIV Virtual Machine uses the Apache FOP print formatter to generate PDF documents from XML reports and XSL transforms. PROIV provides FOP with a basic configuration by default, which may not meet an application’s requirements. To allow an application to configure FOP to its requirements, PROIV allows an external configuration that can be specified.

To allow flexibility, the first method is to set the full path to the configuration file in the environment variable FOP_CONFIG_FILE.

For example, export FOP_CONFIG_FILE=/home/p4user/fopconfig.xml

Note: If the environment variable is not set, the specified file does not exist, the file cannot be read, or the XML does not conform to the fop configuration schema then PROIV will check for a file called ‘fop.xconf’ in the classpath (for example, the virtual_machine/javalib directory).

 

The default configuration used by PROIV is:

<fop version="1.0">

<base>.</base>

<source-resolution>72</source-resolution>

<target-resolution>72</target-resolution>

<default-page-settings height="11in" width="8.26in"/>

<renderers>

<renderer mime="application/pdf">

<filterList>

<value>ascii-85</value>

</filterList>

<fonts>

<auto-detect/>

</fonts>

</renderer>

          <renderer mime="application/postscript"></renderer>

          <renderer mime="application/vnd.hp-PCL"></renderer>

          <renderer mime="image/svg+xml">

                   <format type="paginated"/>

                   <link value="true"/>

                   <strokeText value="false"/>

              </renderer>

              <renderer mime="application/awt"></renderer>

              <renderer mime="image/png"></renderer>

              <renderer mime="image/tiff"></renderer>

              <renderer mime="text/xml"> </renderer>

              <renderer mime="text/plain">

                     <pageSize columns="80"/>

              </renderer>

       </renderers>

</fop>

 

Comment on this topic

Topic ID: 700057

Table of Contents

Index

Glossary

-Search-

Back