You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by IvanLatysh <iv...@yourmail.com> on 2001/12/10 19:18:05 UTC
Question about AWT and PRINT
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
driver.setRenderer(Driver.RENDER_AWT);
// I should use
driver.setRenderer(new org.apache.fop.render.awt.AWTRenderer(translator));
InputHandler inputHandler = new XSLTInputHandler(new File(xmlFile), new File(xslFile));
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.
Ivan@yourmail.com
http://ivan.yourmail.com
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org