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 Maneshi Tuli <ma...@db.com> on 2001/08/10 23:36:42 UTC

some help in generating from fo to pdf

hi ,
I am very new to this area,
i want to generate pdf from xml
i have generated fo from xml and xsl,
but in next step , while generating pdf from fo it is giving problem
this is my code
File xmlFile = new File("c:\\fop\\eg\\abc.xml");
     File xslFile = new File("c:\\fop\\eg\\abc.xsl");
     File outFile = new File("c:\\fop\\eg\\abc.pdf");
     Driver driver = new Driver();
     driver.setRenderer(Driver.RENDER_PDF);
     InputHandler inputHandler = new XSLTInputHandler(xmlFile, xslFile);
     XMLReader parser = inputHandler.getParser();
     driver.buildFOTree(parser, inputHandler);
     driver.format();
     driver.setOutputStream(new FileOutputStream(outFile));
     driver.render();

it says buildFOTree method not found ,

plz anybody can tell me from where i can get api of fo .
and what is the worng with this code.

ur help will be apperciable.

thanks





--

This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org