Document properties
These are what LibreOffice shows in File ▸ Properties: the title, subject, keywords and comments on its Description tab, the author and dates on its General tab, and its Custom Properties.
using OpenDocumentSpreadsheets
ods = newods("Sheet1")
setDocumentProperties(ods; title = "Budget 2027", creator = "Finance", keywords = "budget; plan")
setCustomProperty(ods, "Approved", true)
setCustomProperty(ods, "Version", 3)
OpenDocumentSpreadsheets.getDocumentProperties(ods).title # "Budget 2027"
OpenDocumentSpreadsheets.getCustomProperties(ods) # ["Approved" => true, "Version" => 3]
deleteCustomProperty(ods, "Version")- Custom properties are text, numbers, booleans and dates, kept in name order, as LibreOffice keeps them. Numbers are stored as decimals, and a whole one reads back as an
Int64. category,contentStatus,companyandmanagerhave no fields in OpenDocument: they are kept as custom properties under the names LibreOffice gives them, andgetCustomPropertiesleaves them out.- Saving never changes the modification date: set
modifiedyourself if you want it.