I've implemented piping support for FOP Trunk. Please try it out and let
me know if it works as expected.
http://svn.apache.org/viewvc?rev=675698&view=rev

HTH

To do this in a separate Java program:
- Use the ExampleXML2PDF example: 
http://xmlgraphics.apache.org/fop/0.95/embedding.html#ExampleXML2PDF
- Replace
Source src = new StreamSource(xmlfile);
by
Source src = new StreamSource(System.in);
- Replace
OutputStream out = new java.io.FileOutputStream(pdffile);
by
OutputStream out = System.out;
- Replace
File xsltfile = new File(baseDir, "xml/xslt/projectteam2fo.xsl");
by
File xsltfile = new File(args[0]); //Gets the XSLT from the first command-line 
parameter
- Remove obsolte code (baseDir stuff etc.)
- done.

On 10.07.2008 15:25:03 dbrenck wrote:
> 
> 
> Jeremias Maerki-2 wrote:
> > 
> > [...] No quick solution here, I'm afraid.
> > 
> 
> *gnarf* - okay, let's give it another try:
> Anyone else who did this java code thingy before?
> Source welcome :-)
> 
> Once again: ty in advance.
> -- 
> View this message in context: 
> http://www.nabble.com/How-to-pipe-through-fop--%28perl-cgi--%3E-fop--%3E-pdf--%3E-Browser%29-tp18382402p18382907.html
> Sent from the FOP - Users mailing list archive at Nabble.com.
> 


Jeremias Maerki


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

Reply via email to