Hi, I just start to use FOP.

I have problem when I am try to use FOP with my application (not from command line).

I get this description how to start AWT preview from Driver class:
* Driver driver = new Driver();
* driver.setRenderer(new org.apache.fop.render.awt.AWTRenderer(translator));
* driver.render(parser, fileInputSource(args[0]));

But all this command line targeting.
      Driver driver = new Driver();
        // here instead of 
        // I should use 
      driver.setRenderer(new org.apache.fop.render.awt.AWTRenderer(translator));

      InputHandler inputHandler = new XSLTInputHandler(new File(xmlFile), new 
      XMLReader parser = inputHandler.getParser();
      driver.render(parser, inputHandler.getInputSource());

But how I can create "translator" ?
There are all help on German.

Sincerely yours, Ivan Latysh.

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

Reply via email to