cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geert Josten <>
Subject Re: writing PDF file to filesystem
Date Thu, 24 Feb 2005 13:25:15 GMT
Sharp observation, I hadn't explained how it works..

You simply specify something like:

<save:file src="cocoon://path-to-pdf" target="file://path-to-pdf-on-fs"/>

The src directs to your fo2pdf pipe, the target attribute to where you want to store it. The

transformer replaces the element by a save:result element, containing a status success or
a fail 
with the error message as content. Nice to generate a report out of it...


Alex Kachanov wrote:

> Hi!
> Are you sure this should be a transformer, not a serializer?
> Since in the XML-FO-PDF pipeline pdf file is created at fo2pdf serializer stage
> what would a Sourcewrite Transformer write to the disk? an FO file? 
> But I need a PDF file which is the result of FoToPdf conversion done by fo2pdf serializer.
> Am I missing smth?
> -------------------------------------
> with best wishes
> Alex Kachanov
> ----- Original Message ----- 
> From: "Geert Josten" <>
> To: <>
> Sent: Thursday, February 24, 2005 6:05 PM
> Subject: Re: writing PDF file to filesystem
>>I would suggest using a source writing transformer. Unfortunatily does the SourceWritingTransformer

>>not support writing of non-xml stream. It shouldn't be hard to patch it to make it
work. I wrote a 
>>SaveFilesTransformer myself that does the trick.

IT-consultant at Daidalos BV, Zoetermeer (NL)

GPG: 1024D/12DEBB50

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message