Class CommandLineConverter

  • All Implemented Interfaces:
    Converter, ExternalConverter
    Direct Known Subclasses:
    LibreOfficeConverter

    public class CommandLineConverter
    extends CommandLineBasedConverter
    Generic converter executing a contributed command line.

    The command line to call is stored in the CommandLineName parameter.

    The target file name is in the targetFileName parameter. If it's null, a temporary one will be created.

    All the converter parameters are passed to the command line.

    A sample contribution using this converter:

     
         <converter name="pdf2image" class="org.nuxeo.ecm.platform.convert.plugins.CommandLineConverter">
           <sourceMimeType>application/pdf</sourceMimeType>
           <destinationMimeType>image/jpeg</destinationMimeType>
           <destinationMimeType>image/png</destinationMimeType>
           <destinationMimeType>image/gif</destinationMimeType>
           <parameters>
             <parameter name="CommandLineName">pdftoimage</parameter>
           </parameters>
         </converter>
     
     
    Since:
    7.1