Nick:

We do something like this:

if (configFile != null) {
     //blah file stuff here
     String filename = configFile;
     File userConfigFile = new File(filename);
     Configuration.put("baseDir", "file:" + new File(".").getAbsolutePath
());
     Options options = new Options(userConfigFile);
}

Options is in org.apache.fop.apps.

-Lou





"Nick Winger" <[EMAIL PROTECTED]> on 02/04/2002 08:17:37 AM

Please respond to [EMAIL PROTECTED]

To:   "Apache Mailinglist \(E-Mail\)" <[EMAIL PROTECTED]>
cc:

Subject:  loading the config.xml in java for rendering ?

hi !


i uses the driver class to render an pdf like this:

Driver driver = new Driver( new InputSource( "FOPTest.fo" ),            new
FileOutputStream( "FOPTest.pdf" ) );
driver.setRenderer( Driver.RENDER_PDF );
driver.run();

Now i need the Arial font and have specified it in the userconfig.xml file
but java dosn't know that.

on xml.apache.org the say not to forget to start fop like this (when using
new fonts, to load the configuration file):
-c conf/userconfig.xml

how does this work in java ?

something with calling the ConfigurationReader ?
and somehow pass it to the driver ?


greetings

Nick Winger

(Software-Developer)



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









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

Reply via email to