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...

Cheers

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" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Thursday, February 24, 2005 6:05 PM
Subject: Re: writing PDF file to filesystem




Hi,

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.


-- [EMAIL PROTECTED] IT-consultant at Daidalos BV, Zoetermeer (NL)

http://www.daidalos.nl/
tel:+31-(0)79-3316961
fax:+31-(0)79-3316464

GPG: 1024D/12DEBB50

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



Reply via email to