Thank you Jeremias for your reply.


> 
> I'd start debugging in 
> org.apache.fop.fo.flow.ExternalGraphics.bind().
> Maybe some exception gets swallowed somewhere.

The 'problem' seems to be: when doing configuration with a configuration file,
the 'baseURL' field is not set in the 'FOPUserAgent' (ie, it is null).

If I set the  'baseURL' on the user agent it works.


Here is essentially the code I am using:

     FopFactory fopFactory = FopFactory.newInstance();
     ByteArrayOutputStream out = new ByteArrayOutputStream();
     FOUserAgent agent = fopFactory.newFOUserAgent();
     DefaultConfigurationBuilder cfgBuilder = new 
          DefaultConfigurationBuilder();
     Configuration cfg = cfgBuilder.build("file://" + confPath +"cert.conf");
     fopFactory.setUserConfig(cfg);
     // String basePath = fopFactory.getBaseURLfromConfig(cfg, "base");
     // agent.setBaseURL(basePath);
     Fop fop = fopFactory.newFop(MimeConstants.MIME_PDF, agent, out);


If I uncomment the next-to-last lines, everything works.


1) Is this the preferred way in to set the 'base' directory in 92b?  It seems
like a different approach from 91b.

2) I am not explicitly setting 'font-base' option in the configuration file,
yet somehow fop seems to default to the 'base' directory.  I am curious where
this is done.






---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to