Package com.logicaldoc.onlyoffice
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
A converter that uses the OnlyOffice
- Since:
- 9.0.1
- Author:
- Marco Meschieri - LogicalDOC
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionDows 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
-
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
- Specified by:
getParameterNames
in interfacecom.logicaldoc.core.conversion.FormatConverter
- Overrides:
getParameterNames
in classcom.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 documentfromExtension
- original extensiontoExtension
- new extensionfilePass
- password to open the filelang
- the language- Returns:
- map of metadata describing the converted file
- Throws:
IOException
- I/O errororg.json.simple.parser.ParseException
- Error parsing the JSONURISyntaxException
- Bad conversion service URL
-