I need to update dynamically an existing docx document.
That's the flow my program should have:
1. Take in input an existing word document
2. Add an xml property to a specific table in order to uniquely identify the table (don't care about the way the table is identified or which is the table)
3. Save the document.
4. Open the docx file
5. Use this unique property value to find the table to be updated.
6. update the table
nb: I am fully aware that if smone plays in Word with the doc the specific property would be erased .... but I don't care.
First solution I am thinking about is to create a new control based on tables which would output <w:tblPr w:myID="gotcha" >.
As I am kind of rookie with docx4j, openXML and Jaxb Is this the right way to design it?
Could you help me write down this new control pls?
Any feedback welcome