Class OnlyOfficeConverter

java.lang.Object
com.logicaldoc.core.conversion.AbstractFormatConverter
com.logicaldoc.conversion.EnterpriseAbstractFormatConverter
com.logicaldoc.onlyoffice.OnlyOfficeConverter
All Implemented Interfaces:
com.logicaldoc.core.conversion.FormatConverter

public class OnlyOfficeConverter extends EnterpriseAbstractFormatConverter
A converter that uses the OnlyOffice
Since:
9.0.1
Author:
Marco Meschieri - LogicalDOC
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static Map<String,String>
    convert(String documentUri, String fromExtension, String toExtension, String filePass, String lang)
    Dows the remote conversion and gets the metadata of the converted file, the URL to download the conversion is stored in the key 'fileUrl';
     
    void
    internalConvert(String sid, com.logicaldoc.core.document.Document document, File src, File dest)
     

    Methods inherited from class com.logicaldoc.core.conversion.AbstractFormatConverter

    convert, convert, equals, getExtension, getParameter, getParameters, hashCode, isEnabled, loadParameters, setEnabled

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • OnlyOfficeConverter

      public OnlyOfficeConverter()
  • Method Details

    • internalConvert

      public void internalConvert(String sid, com.logicaldoc.core.document.Document document, File src, File dest) throws IOException
      Throws:
      IOException
    • getParameterNames

      public List<String> getParameterNames()
      Specified by:
      getParameterNames in interface com.logicaldoc.core.conversion.FormatConverter
      Overrides:
      getParameterNames in class com.logicaldoc.core.conversion.AbstractFormatConverter
    • convert

      public static Map<String,String> convert(String documentUri, String fromExtension, String toExtension, String filePass, String lang) throws IOException, org.json.simple.parser.ParseException, URISyntaxException
      Dows the remote conversion and gets the metadata of the converted file, the URL to download the conversion is stored in the key 'fileUrl';
      Parameters:
      documentUri - URI of the document
      fromExtension - original extension
      toExtension - new extension
      filePass - password to open the file
      lang - the language
      Returns:
      map of metadata describing the converted file
      Throws:
      IOException - I/O error
      org.json.simple.parser.ParseException - Error parsing the JSON
      URISyntaxException - Bad conversion service URL