This issue has been created
 
 
XWiki Platform / cid:jira-generated-image-avatar-b30c7943-41ac-4748-b296-472243da4828 XWIKI-23196 Open

Apply last recomendation for JOD converter

 
View issue   ·   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-4b8f8b00-aed9-4b69-92bd-a9cd18c79d8b Josué Tille created this issue on 12/May/25 17:03
 
Summary: Apply last recomendation for JOD converter
Issue Type: cid:jira-generated-image-avatar-b30c7943-41ac-4748-b296-472243da4828 Bug
Affects Versions: 17.3.0
Assignee: Unassigned
Components: Office
Created: 12/May/25 17:03
Priority: cid:jira-generated-image-static-major-79427137-01d9-4ef1-93ea-6e934a4f860a Major
Reporter: Josué Tille
Description:

Following this discussion with the JODConverter developer it seem that we need to adapt some parameter on the export to increase the stability of libreoffice export.

This issue is to apply the last recommendation described in the upstream ticket.

On my side the code that I used to test which work greatly is

var storeProps = new HashMap<String, Object>();
storeProps.put("FilterName", "writerweb8_writer");
storeProps.put("FilterOptions", "EmbedImages");
var loadProps = new HashMap<String, Object>();
loadProps.put("FilterName", "HTML (StarWriter)");

LocalConverter
    .builder()
    .officeManager(manager)
    .loadProperties(loadProps)
    .storeProperties(storeProps)
    .build()
    .convert(inputFile)
    .to(outputFile)
    .execute();

This new code solved the export issues that I had with some document.