Andreas L Delmelle wrote:
The FOUseragent should be instantiated and configured before the Fop
instance. Also, getUserAgent() returns 'a' useragent. There is no such
thing as 'the' useragent.
So try:
FOUserAgent ua = fopFactory.getUserAgent();
ua.setRendererOverride(...);
Fop fop = fopFactory.newFop(mimetype, ua, outputStrem);
...
HTH!
That works, thanks.
I guess if we're not supposed to set fields on the user agent after the
Fop instance is created, the API should prevent it by either (a)
throwing an exception when we try to change it, or (b) not giving access
to the object in the first place.
Daniel
--
Daniel Noll
Nuix Pty Ltd
Suite 79, 89 Jones St, Ultimo NSW 2007, Australia Ph: +61 2 9280 0699
Web: http://nuix.com/ Fax: +61 2 9212 6902
This message is intended only for the named recipient. If you are not
the intended recipient you are notified that disclosing, copying,
distributing or taking any action in reliance on the contents of this
message or attachment is strictly prohibited.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]