the jodconverter library we use to manipulate office documents in XWiki allows to specified some import / export configurations in a JSON data structure. We currently bundle in XWiki Standard a custom version of this file available there: xwiki-platform/document-formats.js at master · xwiki/xwiki-platform · GitHub
However, I recently started to work (see: https://github.com/xwiki/xwiki-platform/pull/2042) on upgrading the jodconverter dependency to latest version, and as part of this work I entirely reviewed this file, to compare it to the standard version of the file which is provided and bundled in jodconverter itself. It appears that:
- our file is currently very outdated compared to the official version of the library
- it seems that we don’t need anymore any of the customization we have in this file
So my proposal here is that we stop bundling a custom version of this file, and that we by default only rely on the standard version bundled in jodconverter. The big advantage is that it will simplify a lot the upgrades in the future. Also note that we have documentation (Office Macro (XWiki.org)) about customizing this configuration: those customization would be still valid, and we should keep that documentation (with an updated pointer to the example file).