On 05.06.2006 22:23:50 David P. Nesbitt wrote:
> Andreas,
>
> That did not work. The FontBaseURL configuration does
> not seem to be working either. Does FOP 0.92 support
> URL's that are dynamically created from within a
> jar/war file? Here is the code I added based on your
> suggestion:
>
> foUserAgent = fopFactory.newFOUserAgent();
> foUserAgent.setBaseURL(
>
> AbstractDataRetriever.class.getResource("resource/").getFile());
Just a suspicion but the line above could be the problem. Instinctively,
I'd say this should be:
AbstractDataRetriever.class.getResource("resource/").toExternalForm());
> fop =
> fopFactory.newFop(MimeConstants.MIME_PDF, foUserAgent,
> baos);
>
>
> Has anyone got 0.92 working with images and font
> metrics files embedded in jar/war files? It worked
> fine for me with 0.20.5, but I can't seem to get it to
> work with 0.92.
If you're building WAR files and are using FOP in a servlet, the
ServletContextURIResolver might help you. Search the mailing list
archive for fop-users for "ServletContextURIResolver" to find more info.
<snip/>
Jeremias Maerki
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]