Re: fop without temporary file

On Apr 21, 2008, at 1:46 AM, Jeremias Maerki wrote:

>
> I suspect what you're looking for is the ability to pipe the XML into
> "stdin" of the FOP process. And you'd probably want to be able to send
> the PDF to "stdout" afterwards. Unfortunately, this hasn't been
> implemented, yet.
>
> You've got about three options:
> 1. Write a minimal Java class that embeds FOP and does exactly what I
> describe above. Shouldn't be hard with information on the FOP  
> website if
> you have some Java knowledge.
> 2. Long-term solution: Add "piping" support to the command-line
> interface of FOP and submit a patch.
> 3. If you want to call FOP many times, for example as part of a server
> process, then you'd better deploy FOP as a servlet or web service so  
> you
> don't always have the JVM startup overhead each time you create a PDF:
> 4. You can also experiment attaching FOP to your application using JNI
> (Java Native Interface), but that's a rather hardcore approach.

5. Cocoon (cocoon.apache.org).  This also takes care of (3) above.

—ml—

Received on Monday, 21 April 2008 11:29:48 UTC