Okay, perhaps I over-reacted a bit as it seems one can do:
FopFactoryBuilder fopFactoryBuilder = new FopFactoryBuilder( baseURI );
FopFactory fopFactory = fopFactoryBuilder.build();
and then have the remainder of the API work much as it used to (apart
from FOUserAgent lacking any API for setting the base URI).
Simple guidance to this effect would have been quite helpful, though!
On 6/8/2015 7:52 AM, Jess Holle wrote:
So I downloaded FOP 2.0 to use in place of 1.x for embedded use in
creating PDFs from XSL-FO within Java server code.
Unfortunately:
1. The extremely simple code using FOP 1.x does not compile with 2.0
* No big deal but....
2. It is unclear how one should modify 1.x code to use 2.0 APIs
3. There appears to be no migration guidance in the documentation
whatsoever
* This is the real kicker -- given #2.
This issue starts with the very first line of FOP 1.x API calls:
FopFactory ff = org.apache.fop.apps.FopFactory.newInstance();
What's the replacement for this line? It's completely unclear from
the documentation.
Any assistance here would be greatly appreciated.
--
Jess Holle