Look here on how to apply the userconfig file:
http://xml.apache.org/fop/embedding.html

And as for the second question: PDFRenderer, for example, does not
use the setOptions()-facility at the moment.

> I create a DOM-Tree dynamically and put it together with a XSL-file to get a
> PDF.
> 
> But now I have my own font information in the userconfig.xml and need to
> bind it to my
> workflow.
> 
> I gess I found a possibility to to so by using the setOption of a
> PDFRenderer like this:
> ******************************************
> Driver theDriver = new Driver();
> Renderer theREnderer = new PDFRenderer();
> theRenderer.setOptions( <use the userconfig.xml> );
> 
> 
> theDriver.setRenderer(PDFRenderer() );
> theDriver.setInputSource( new DocumentInputSource( getFormatedSource() ) );
> 
> theDriver.setOutputStream( getPDFOutputStream() );
> theDriver.run();
> ********************************************
> 
> Now now I have a Question: Is this the right way and, if so, since
> the attribute for the setOption -method is Hashtable, what could I use for
> the key and what could be the value?
> 

Cheers,
Jeremias Märki

mailto:[EMAIL PROTECTED]

OUTLINE AG
Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern
Fon +41 41 317 20 20 - Fax +41 41 317 20 29
Internet http://www.outline.ch

Reply via email to