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
38 stars 22 forks source link

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

Closed ylussaud closed 9 months ago

ylussaud commented 10 months ago

Core properties can be accessed using:

XWPFDocument.getProperties().getCoreProperties()

Possible services, we might not need all of them:

jmauersberger commented 10 months ago

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

ylussaud commented 10 months ago

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

jmauersberger commented 10 months 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 10 months ago

Yes, that's a good idea.