W3C home > Mailing lists > Public > www-xsl-fo@w3.org > April 2008

Re: fop without temporary file

From: Mark Lundquist <ml@wrinkledog.com>
Date: Mon, 21 Apr 2008 04:29:11 -0700
Message-Id: <7957B8FB-5858-403A-92E6-0CB2291C82F6@wrinkledog.com>
To: www-xsl-fo@w3.org

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.

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

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:58:31 UTC