Hi everyone,
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: https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-office/xwiki-platform-office-importer/src/main/resources/document-formats.js
However, I recently started to work (see: XWIKI-20137: Upgrade to jodconverter 4.4.5 by surli · Pull Request #2042 · xwiki/xwiki-platform · GitHub) 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 (https://extensions.xwiki.org/xwiki/bin/view/Extension/Office%20Macro#HConfiguration) about customizing this configuration: those customization would be still valid, and we should keep that documentation (with an updated pointer to the example file).
wdyt?