Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-23196

Apply last recomendation for JOD converter

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 17.3.0
    • Office
    • None
    • Unknown

    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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            josue Josué Tille
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: