wordinator
wordinator copied to clipboard
Set document properties
Enable ability to set the properties of the document.
These are stored in the docProps/core.xml, docProps/app.xml, and docProps/custom.xml files.
The properties can be accessed like so:
XWPFDocument doc = new XWPFDocument();
POIXMLProperties props = doc.getProperties();
This seems to work and there do appear to be set methods for all the properties:
POIXMLProperties props = doc.getProperties();
Optional<java.util.Date> date = Optional.of(new Date());
props.getCoreProperties().setCreated(date);