Hello Fawzib, what you are suggesting/trying seems quite impossible to me? But, I am just wondering, why would take it so long for the pdf's to be generated? I suppose you are generating a pdf from several xml docs and serialize it to pdf? Well, do the xml docs change every minute? Why can't you just solve it by smart caching?
Do you know which pdfs need to be generated? If you know this, and you really want to do a background creation, use a cron job for this and cache it...or save it as pdf and serve that one.... A few minutes to be generated, how large are they???? > -----Original Message----- > From: Fawzib Rojas [mailto:[EMAIL PROTECTED] > Posted At: dinsdag 13 december 2005 22:01 > Posted To: Cocoon User List > Conversation: Question about serializers > Subject: Question about serializers > Importance: High > > > I asked a few days ago about creating a PDF on a background thread > (Subject:Create PDF on background) but didn't got an answer I > could use. > Our users requests the PDF and it cannot be batched. > Sometimes it takes > a few minutes to be created. What I want to do is something like this: > > <map:match pattern="background-pdf-document"> > <map:generate type="custom_generator" src=""/> > <map:transform src="my_transform.xsl"/> > <map:serialize type="background"> > <!-- pipeline for pdf (or anything) to be run in the > background --> > <!-- because it takes a while to be created --> > <map:parameter name="actual_pipeline" > value="cocoon:/pdf_pipeline" > type="fo2pdf"/> > <!-- pipeline to display progress of pipeline 1 > refreshing it until > pipeline 1 is done? --> > <map:parameter name="progress_pipeline" > value="cocoon:/progress_pipeline" type="html"/> > </map:serialize> > </map:match> > > Is something like this possible? Maybe a custom serializer? Is there > another way to do this? > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
