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 SummaryConstructors
- 
Method SummaryModifier 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';voidinternalConvert(String sid, com.logicaldoc.core.document.Document document, File src, File dest) Methods inherited from class com.logicaldoc.core.conversion.AbstractFormatConverterconvert, convert, equals, getExtension, getParameter, getParameters, hashCode, isEnabled, loadParameters, setEnabled
- 
Constructor Details- 
OnlyOfficeConverterpublic OnlyOfficeConverter()
 
- 
- 
Method Details- 
internalConvertpublic void internalConvert(String sid, com.logicaldoc.core.document.Document document, File src, File dest) throws IOException - Throws:
- IOException
 
- 
getParameterNames- Specified by:
- getParameterNamesin interface- com.logicaldoc.core.conversion.FormatConverter
- Overrides:
- getParameterNamesin class- com.logicaldoc.core.conversion.AbstractFormatConverter
 
- 
convertpublic 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
 
 
-