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,
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