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 "Sami, Abdul (Netprosys)" <as...@spbank.com> on 2002/02/14 21:37:03 UTC
FOP Console printing
I am using Fop-0.20.1. to generate PDF. How can i stop FOP from printing
console messages?
Or i could redirect the messages to some file. Plus from which jar i could
get org.apache.log.* classes. The code is given below:
private void generatePdf(File xmlFile, File xslFile, String pdfFileName)
throws Exception {
Driver driver = new Driver();
driver.setRenderer(Driver.RENDER_PDF);
InputHandler inputHandler = new XSLTInputHandler(xmlFile,
xslFile);
XMLReader parser = inputHandler.getParser();
OutputStream pdfOut = new FileOutputStream(pdfFileName);
driver.setOutputStream(pdfOut);
driver.setXMLReader(parser);
driver.render(parser, inputHandler.getInputSource());
pdfOut.close();
}
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org
Re: FOP Console printing
Posted by Weiqi Gao <we...@networkusa.net>.
On Thu, 2002-02-14 at 14:37, Sami, Abdul (Netprosys) wrote:
> I am using Fop-0.20.1. to generate PDF. How can i stop FOP from printing
> console messages?
fop.sh myfile.fo myfile.pdf > /dev/null 2>&1
> Or i could redirect the messages to some file.
Yes you could.
> Plus from which jar i could get org.apache.log.* classes. The code is
> given below:
Let's take a look at the jar files included in the lib subdirectory:
=============================================================
[weiqi@gao-2001 xml-fop]$ ls lib | more
CVS
ant.jar
batik.jar
bin
bsf.jar
buildtools.jar
jimi-1.0.jar
jimi-License.txt
logkit-1.0.jar
readme
stylebook.jar
xalan-2.2D11.jar
xerces-1.4.3.jar
=============================================================
Anybody want to make a guess which of these jar files contain the
org.apache.log.* classes?
It's not in ant.jar. I just opened it in notepad, and did a search for
"org.apache.log". It's not in that file! :=)
--
Weiqi Gao
weiqigao@networkusa.net
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org