Yes, it is a bit different now. Something like this should work.

                String confFile = "/path/to/fop.xconf";
FopFactoryBuilder builder = new FopConfParser(new File(confFile)).getFopFactoryBuilder(); // set here needed features if needed using builder.set... (complete with appropriate method)
                FopFactory fopFactory = builder.build();

Then you use the factory as before.

On 2/26/13 5:03 PM, Chen Yang wrote:

I recently get request to support complex script, I check out the source code and rebuild fop today. Also realized the API has changed http://wiki.apache.org/xmlgraphics-fop/FopFactoryConfiguration

I also spent some time with ExampleJava2D2PDF.java did not help much to resolved the issue, my little knowledge about java is also not helping me.

Been able to load the configuration file with my last fop 1.1 build, but cannot figure out how to do it correctly with post 1.1, here is my servlet file, if anyone can help me point it out the issue, would be much appreciated.

Sincerely,

Chen Yang



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org

Reply via email to