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/07 23:40:31 UTC

How to use FOP in Java

I am generating PDF files using FOP by the code given below

String[] arr = {"-q", "-xml",xmlFile, "-xsl",xslFile, "-pdf", pdfFile};
Fop.main(arr);

I want to use streams (input stream and output stream)
Actually i am using Jsps for displaying of reports. And report is generated
on demand.
So i dont want to generate file, just want to stream data.

can any one give sample code.



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


Re: How to use FOP in Java

Posted by Jeremias Maerki <je...@outline.ch>.
> I am generating PDF files using FOP by the code given below
> 
> String[] arr = {"-q", "-xml",xmlFile, "-xsl",xslFile, "-pdf", pdfFile};
> Fop.main(arr);
> 
> I want to use streams (input stream and output stream)
> Actually i am using Jsps for displaying of reports. And report is generated
> on demand.
> So i dont want to generate file, just want to stream data.
> 
> can any one give sample code.

How about reading the documentation at:
http://xml.apache.org/fop/embedding.html

...or browsing through the mailing list archives?

Cheers,
Jeremias Märki

mailto:jeremias.maerki@outline.ch

OUTLINE AG
Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern
Fon +41 41 317 20 20 - Fax +41 41 317 20 29
Internet http://www.outline.ch


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