Hi Jesse,
The only difficult part of that code is the Font Base URL. Do you really
need a font base URI that's different from the global base URI? Assuming
you can just set Base URL instead, there is a sample on the embedding
page that's quite similar to below, i.e.
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
Okay, it's now clear that I could have just done:
FopFactory fopFactory = FopFactory.newInstance( baseURI );
That said, now I have code doing:
FopFactory fopFactory = FopFactory.newInstance();
String strFontbase = getFontbaseLocation();
File fopConfig = getConfigFile();
if
Hi,
We have some examples here:
https://xmlgraphics.apache.org/fop/2.0/embedding.html
Thanks
From: Jess Holle [mailto:je...@ptc.com]
Sent: 08 June 2015 13:52
To: fop-users@xmlgraphics.apache.org
Subject: FOP 1.1 to 2.0 Migration Guidance?!?
So I downloaded FOP 2.0 to use
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