Denis sent me this, I think it would helps you.

Emmanuel

Here is example code that works for me (it should work for you also :-)

         Options options = null;
         String pathFonts = null;

         options = new Options(new File("userconfig.xml"));

         Driver driver = new Driver();

         driver.setRenderer(Driver.RENDER_PDF);

driver.addElementMapping("org.apache.fop.fo.StandardElementMapping");

driver.addPropertyList("org.apache.fop.fo.StandardPropertyListMapping");
         driver.setOutputStream(out);
         driver.buildFOTree(createParser(), foFile);
         driver.format();
         driver.render();

I hope this helps you.

Denis Kranjcec

-----Message d'origine-----
De : Ricardo Coutinho [mailto:[EMAIL PROTECTED]]
Envoyé : vendredi 29 juin 2001 17:32
À : [EMAIL PROTECTED]
Objet : Loading userconfig xml file with embedded FOP.


Hi,

The method to load a userconfig file has been removed from the driver class.
How can I now specify my userconfig file.
I checked out the class and there seemed to be no other method that would do
this.

Can someone pleas help me on this.

Regards

Ricardo Coutinho


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


========================================================================= 
Ce message et toutes les pièces jointes sont propriété de VALTECH et 
susceptibles de contenir des informations confidentielles à l'intention 
exclusive de ses destinataires. Si vous avez reçu ce message par erreur 
ou si celui ci vous est parvenu incomplet ou altéré, merci d'en avertir 
l'expéditeur par retour.Toute utilisation, diffusion ou publication non 
expressément autorisée par nous par écrit est strictement interdite. 
 -------------------------------------------------------------------------- 
This message and any attachments are Valtech property and may contain 
iconfidential information intended solely for the addressees. If your are 
not the intended recipient of this message or if you have received it 
uncomplete or altered, please notify the author by replying to his e-mail 
immediately. Any unauthorised use, diffusion or dissemination not 
expressly authorised by us in writing is strictly prohibited. 
========================================================================= 
Copyright Valtech 2000 



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

Reply via email to