Hi,

I need to update some custom properties in a docx.  I've gotten as far
as reading the variables:

public class UpdateWordDocument {

        public static void main(String[] args) throws Exception {
                XWPFDocument doc = new 
XWPFDocument(POIXMLDocument.openPackage(fileName);
                CustomProperties props = 
doc.getProperties().getCustomProperties();
                CTProperty[] ctp = 
props.getUnderlyingProperties().getPropertyArray();

                for (CTProperty foo : ctp) {
                        System.out.println(foo.toString());
                }
        }
}

I don't believe the code exists to update these property values and
write them back to the file.  If someone can point me to the proper
package and class, I can take a shot at providing a patch back.

Thanks.

Aram

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to