可以像这样在 docx4j 中添加自定义属性:
final DocPropsCustomPart customPart = getDocPropsCustomPart();
final Properties customProperties = customPart.getJaxbElement();
...
customProperties.getProperty().add(newProperty);
但是如何删除已经设置的属性?
可以像这样在 docx4j 中添加自定义属性:
final DocPropsCustomPart customPart = getDocPropsCustomPart();
final Properties customProperties = customPart.getJaxbElement();
...
customProperties.getProperty().add(newProperty);
但是如何删除已经设置的属性?