I am able to apply the XML to the XDP by calling services in JAVA and it generated a PDF for me.
Now i need to implement the logic where i iterate over the XML and create a PDF page for each customer info occurrence in the XML. Then combine all the PDF's as one PDF. Any suggestions on this part ?
I don't recombine, but I do use loops in my processes to do similar things
- Create a process
- Make a xml_data of type xml as an Input. Make an out_doc of document type as an Output.
- Create a looping construct in the process with an activity that checks to see if your current loop iteration > the number of instances of the PDF you need created.
- I call these doc_count & doc_index
- Extract the XML for the document referenced by doc_index into a temporary xml. I do this because I like working with xpath statements less than 200 characters and I often times need to "adjust" the XML before sending it to be rendered
- Call the process or activity which does the rendering ( I am using Output services) using your extracted XML
- I think you'd want to save the PDF in a list variable ( I am not doing this, since I store the resulting PDF to a database)
- doc_index ++
- When the loop exits, you will need to write some DDX that combines the documents in the list variable
- You already know the number of documents to process
- I created my DDX using a Script component, but you could just as easily do this using a DSC.
- Execute the DDX.
- Extract the document from the results into the out_doc variable. I can give more details here if you need.
Thank you for the response. I was able to create multiple PDF's using the "Repeat Subform for each Data Item" property in the LiveCycle Designer. However, i rather go your route since it will give me more control and also help me learn this tool. So far i am having a hard time creating complex processes since everything is so new to me. I think i have to brush up on XPATH (i have never used it).
I am going to start working on this today and come back with questions.