On Jul 28, 2009, at 1:39 PM, Chris Gow wrote:
Unfortunately, that transformer does not seem to appear in cocoon
2.0.x (which is the version of cocoon I am stuck on).
-- chris
On 07/29/2009 12:09 PM, Robby Pelssers wrote:
Not sure ... but can't you just use the source-write transformer?
Robby
It's in the 2.0 docs:
http://cocoon.apache.org/2.0/userdocs/transformers/sourcewriting-transformer.html
But I'm not sure it'll do what you want -- write out the final PDF
from the fop serializer.
It's a transformer and it's working in xml before it's serialized --
although you could
probably redirect the final fop output before serialization and make a
second pipeline
that does that final step for match='*.pdf'
[ In general, and especially for older versions, I'ld recommend
checking the docs against
the sources or classfiles -- sometimes the docs lag behind what's
actually there.
Also, the 2.0.x docs looks pretty sparse -- I would think it would
be worth upgrading
to 2.1.x just for better docs, but I don't know exactly how stuck
you are on 2.0.x ]
Is flowscript in 2.0.x ? [ I see a script generator in the docs ...
is that the same thing
or an earlier version ? ]
If yes, you could use cocoon.processPipelineTo():
var pipe_output = java.io.ByteArrayOutputStream();
cocoon.processPipelineTo( 'pipeline.pdf' , {}, pipe_output );
[ where 'pipeline.pdf' is a url that matches a cocoon pipeline that
produces the pdf file. ]
and then [1] write the output to disk and [2] output a page with a
link to that output file.
If no flowscript in 2.0.x, you may be able to do the same sort of
thing from a JSP page.
( or any other template where you can call java code )
-- Steve Majewski / UVA Alderman Library
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
For additional commands, e-mail: users-h...@cocoon.apache.org