We currently have a process for generating PDF documents from HTML (combined from a reapating list of fragments) but the client is requesting for a Word Document also to be generated at times where manual edits and back and forth communication between multiple parties is needed.
I've looked into a number of posts on Word Document generation in Pega Community including below post but have not found something that can be used with Pega 8.4.
The clostest option to what I need to do was found under one of the posts that was discussing the use of Docx4J library but in Pega 8.4 the pzGenerateDocument Function that uses this library is marked Depricated. What is recommended in Pega 8.4 is use of pxGenerateWordDocument but that does not seem to have the flexibiity that was there with Docx4J for using HTML inpout in order to generate the Word Document.
I would appreciate it any input on how this could be achieved in Pega 8.4 since it would not be possible to maintain two sets of document source (text/HTML and Word Template) for each section that needs to be included in current PDF generation as well as now needed Word Document.
***Edited by Moderator: Pooja Gadige to add platform capability tag***
@dfrankmv Thanks for the response Deivit. The content is captured as a dynamic set of sections where it is currently generating the PDF using the combined HTML document as source. Since we are being asked to generate the Word Document *in addition* to the PDF we cannot ask the client to maintain both Text/HTML sections and Word Templates especially in sync for this purpose.
However, based on your input / video I will try to see if I can generate the full HTML document first and feed it as a single section to an empty Template that only refers to a HTML section.