ObeoNetwork / M2Doc

The M2Doc technology enables the generation of Office Open XML documents from models.
http://obeonetwork.github.io/M2Doc/
Eclipse Public License 2.0
40 stars 22 forks source link

Add services to get/set document core properties. #512

Closed ylussaud closed 11 months ago

ylussaud commented 1 year ago

Core properties can be accessed using:

XWPFDocument.getProperties().getCoreProperties()

Possible services, we might not need all of them:

jmauersberger commented 1 year ago

Very good idea. Just a minor thing: What about tags? There seems to be a field in Word for that.

ylussaud commented 1 year ago

maybe setKeywords() ? I didn't have a look on specific details yet.

jmauersberger commented 1 year ago

Seems like POIXMLProperties indeed has the functions you mentioned in your service, so seems you are right with keywords == tags. Just as an extension: may some getter properties from ExtendedProperties may make sense as well like getHyperlinkBase() or getManager(). Anyway, all minor...

ylussaud commented 1 year ago

Yes, that's a good idea.