public class LibreOfficeConverter extends CommandLineConverter
soffice
command line.
It fills the -env:userInstallation
argument with a temporary folder to correctly isolate the soffice
processes so multiple instances can be run simultaneously.
CommandLineBasedConverter.CmdReturn
Modifier and Type | Field and Description |
---|---|
static String |
USER_INSTALLATION_PATH_KEY |
OUT_DIR_PATH_KEY, RESERVED_PARAMETERS, SOURCE_FILE_PATH_KEY, TARGET_FILE_NAME_KEY, TARGET_FILE_PATH_KEY
CMD_NAME_PARAMETER, initParameters, TMP_PATH_PARAMETER
Constructor and Description |
---|
LibreOfficeConverter() |
Modifier and Type | Method and Description |
---|---|
protected BlobHolder |
buildResult(List<String> cmdOutput,
CmdParameters cmdParams)
Builds result from commandLine output buffer.
|
protected Map<String,String> |
getCmdStringParameters(BlobHolder blobHolder,
Map<String,Serializable> parameters)
Extracts String parameters.
|
getCmdBlobParameters
convert, execOnBlob, getCommandLineService, getCommandName, getTmpDirectory, init, isConverterAvailable
public static final String USER_INSTALLATION_PATH_KEY
public LibreOfficeConverter()
protected Map<String,String> getCmdStringParameters(BlobHolder blobHolder, Map<String,Serializable> parameters)
CommandLineBasedConverter
getCmdStringParameters
in class CommandLineConverter
protected BlobHolder buildResult(List<String> cmdOutput, CmdParameters cmdParams)
CommandLineBasedConverter
buildResult
in class CommandLineConverter
Copyright © 2019 Nuxeo. All rights reserved.