Capture or Output data from current flow state to PDF

2014-02-01 Thread Sandor Szatmari
Hello,

Using Cocoon 2.2, I am trying to generate some PDF interactively using flow.  
The flowscript loops, continually getting input from the user, allowing them to 
add content via form submission.  The input is collected and used to 
dynamically build a document.  This part works using the sitemap.xmap below.

What I would like to do next is take the current state of the data collected in 
the flow and transform to PDF.

I'm not sure how to capture the output of the current flow state.

Can this be done at all?
If so, can it be done inside the pipeline without writing to a temporary file?

Using Cocoon 2.2 is not a requirement so if this is achievable with a different 
version that is OK.


http://apache.org/cocoon/sitemap/1.0";>


   



  

  



  
  



  

  




Regards,
Sandor
-
To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
For additional commands, e-mail: users-h...@cocoon.apache.org



Re: Capture or Output data from current flow state to PDF

2014-02-06 Thread Miguel

Hi Sandor

Usually, to create a pdf from a source is necesary two phases:

* Use transformer with a xslfo sheet
* Use serializer

Example:


  



where

src="org.apache.cocoon.serialization.FOPSerializer"


If I understand, you want show the page xhtml and (same time) convert to 
PDF, so I see in your code you use a "game.js", where you can call 
cocoon pipeline using processPipelineTo() method and create PDF 
document, example:
cocoon.processPipelineTo("match of your cocoon sitemap",null, 
FileOutputStream objetc)


Best regards

El 01/02/2014 16:01, Sandor Szatmari escribió:

Hello,

Using Cocoon 2.2, I am trying to generate some PDF interactively using flow.  
The flowscript loops, continually getting input from the user, allowing them to 
add content via form submission.  The input is collected and used to 
dynamically build a document.  This part works using the sitemap.xmap below.

What I would like to do next is take the current state of the data collected in 
the flow and transform to PDF.

I'm not sure how to capture the output of the current flow state.

Can this be done at all?
If so, can it be done inside the pipeline without writing to a temporary file?

Using Cocoon 2.2 is not a requirement so if this is achievable with a different 
version that is OK.


http://apache.org/cocoon/sitemap/1.0";>






   
 
   
 

 
   
   
 

 
   
 
   




Regards,
Sandor
-
To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
For additional commands, e-mail: users-h...@cocoon.apache.org





<>
-
To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
For additional commands, e-mail: users-h...@cocoon.apache.org