Hello, I'm running FOP 0.95 and Tomcat 6, OS : Solaris 10, java version "1.6.0_10"
How can I tell the FOP in Servlet to use my FOP configuration from file /opt/fop/conf/fop.xconf ? When I run from web: http://localhost:8080/fop/fop?fo=/home/path/to/fofile.fo I see the PDF document, but without my fonts (which are from my fop.xconf). It seems, the FOP in servlet, didn't read the FOP config file at all. When I run the fop from command line: fop -c /opt/fop/conf/fop.xconf -fo /home/path/to/fofile.fo -pdf /tmp/fofile.pdf the created PDF file is with the correct fonts. I read the FOP document about configuration file at: http://xmlgraphics.apache.org/fop/0.94/embedding.html#config-external But, in which script (java) should I add the following lines, so I can use FOP in servlet with configuration ? import org.apache.avalon.framework.configuration.Configuration; import org.apache.avalon.framework.configuration.DefaultConfigurationBuilder; fopFactory.setUserConfig(new File("/opt/fop/conf/fop.xconf")); Any help would be appreciated. Al
