Platform Explorer / Nuxeo Platform 9.2

Contribution org.nuxeo.ecm.core.convert.plugins--converter

This contribution is part of XML component org.nuxeo.ecm.core.convert.plugins inside nuxeo-core-convert-plugins-9.2.jar /OSGI-INF/convert-service-contrib.xml

Extension Point

Extension point converter of component ConversionServiceImpl.

Contributed Items

  • <converter class="org.nuxeo.ecm.platform.convert.plugins.CommandLineConverter" name="pdf2text">
          <sourceMimeType>application/pdf</sourceMimeType>
          <destinationMimeType>text/plain</destinationMimeType>
          <parameters>
            <parameter name="CommandLineName">pdftotext</parameter>
          </parameters>
        </converter>
  • <converter class="org.nuxeo.ecm.core.convert.plugins.text.extractors.XML2TextConverter" name="xml2text">
          <sourceMimeType>text/xml</sourceMimeType>
          <sourceMimeType>application/xml</sourceMimeType>
          <destinationMimeType>text/plain</destinationMimeType>
        </converter>
  • <converter class="org.nuxeo.ecm.core.convert.plugins.text.extractors.Html2TextConverter" name="html2text">
          <sourceMimeType>text/html</sourceMimeType>
          <sourceMimeType>text/xhtml</sourceMimeType>
          <destinationMimeType>text/plain</destinationMimeType>
        </converter>
  • <converter class="org.nuxeo.ecm.core.convert.plugins.text.extractors.MD2TextConverter" name="md2text">
          <sourceMimeType>text/x-web-markdown</sourceMimeType>
          <destinationMimeType>text/plain</destinationMimeType>
        </converter>
  • <converter class="org.nuxeo.ecm.core.convert.plugins.text.extractors.XL2TextConverter" name="xl2text">
          <sourceMimeType>application/vnd.ms-excel</sourceMimeType>
          <destinationMimeType>text/plain</destinationMimeType>
        </converter>
  • <converter class="org.nuxeo.ecm.core.convert.plugins.text.extractors.XLX2TextConverter" name="xlx2text">
          <sourceMimeType>
          application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
          </sourceMimeType>
          <destinationMimeType>text/plain</destinationMimeType>
          <parameters>
           <parameter name="MAX_SIZE">3145728</parameter>
          </parameters>
        </converter>
  • <converter class="org.nuxeo.ecm.core.convert.plugins.text.extractors.MSOffice2TextConverter" name="msoffice2text">
          <sourceMimeType>application/msword</sourceMimeType>
          <sourceMimeType>application/vnd.ms-powerpoint</sourceMimeType>
          <destinationMimeType>text/plain</destinationMimeType>
        </converter>
  • <converter class="org.nuxeo.ecm.core.convert.plugins.text.extractors.RTF2TextConverter" name="rtf2text">
          <sourceMimeType>application/rtf</sourceMimeType>
          <sourceMimeType>text/rtf</sourceMimeType>
          <destinationMimeType>text/plain</destinationMimeType>
        </converter>
  • <converter class="org.nuxeo.ecm.core.convert.plugins.text.extractors.DOCX2TextConverter" name="docx2text">
          <sourceMimeType>
            application/vnd.openxmlformats-officedocument.wordprocessingml.document
          </sourceMimeType>
          <destinationMimeType>text/plain</destinationMimeType>
        </converter>
  • <converter class="org.nuxeo.ecm.core.convert.plugins.text.extractors.PPTX2TextConverter" name="pptx2text">
          <sourceMimeType>
            application/vnd.openxmlformats-officedocument.presentationml.presentation
          </sourceMimeType>
          <destinationMimeType>text/plain</destinationMimeType>
        </converter>
  • <converter class="org.nuxeo.ecm.core.convert.plugins.text.extractors.OOo2TextConverter" name="oo2text">
          <sourceMimeType>application/vnd.sun.xml.impress</sourceMimeType>
          <sourceMimeType>application/vnd.sun.xml.impress.template</sourceMimeType>
          <sourceMimeType>
            application/vnd.oasis.opendocument.presentation
          </sourceMimeType>
          <sourceMimeType>
            application/vnd.oasis.opendocument.presentation-template
          </sourceMimeType>
          <sourceMimeType>application/vnd.sun.xml.calc</sourceMimeType>
          <sourceMimeType>application/vnd.sun.xml.calc.template</sourceMimeType>
          <sourceMimeType>
            application/vnd.oasis.opendocument.spreadsheet
          </sourceMimeType>
          <sourceMimeType>
            application/vnd.oasis.opendocument.spreadsheet-template
          </sourceMimeType>
          <sourceMimeType>application/vnd.sun.xml.writer</sourceMimeType>
          <sourceMimeType>application/vnd.sun.xml.writer.template</sourceMimeType>
          <sourceMimeType>application/vnd.oasis.opendocument.text</sourceMimeType>
          <sourceMimeType>
            application/vnd.oasis.opendocument.text-template
          </sourceMimeType>
    
          <destinationMimeType>text/plain</destinationMimeType>
        </converter>
  • <converter class="org.nuxeo.ecm.core.convert.plugins.text.extractors.RFC822ToTextConverter" name="rfc822totext">
          <destinationMimeType>text/plain</destinationMimeType>
          <sourceMimeType>message/rfc822</sourceMimeType>
        </converter>
  • <converter class="org.nuxeo.ecm.core.convert.plugins.text.extractors.FullTextConverter" name="any2text">
          <sourceMimeType>*</sourceMimeType>
          <destinationMimeType>text/plain</destinationMimeType>
        </converter>
  • <converter class="org.nuxeo.ecm.platform.convert.plugins.CommandLineConverter" name="ps2pdf">
          <sourceMimeType>application/postscript</sourceMimeType>
          <sourceMimeType>application/eps</sourceMimeType>
          <sourceMimeType>application/x-eps</sourceMimeType>
          <sourceMimeType>image/eps</sourceMimeType>
          <sourceMimeType>image/x-eps</sourceMimeType>
          <sourceMimeType>application/illustrator</sourceMimeType>
          <destinationMimeType>application/pdf</destinationMimeType>
          <parameters>
            <parameter name="CommandLineName">ps2pdf</parameter>
          </parameters>
        </converter>
  • <converter name="ps2pdf2text">
          <sourceMimeType>application/postscript</sourceMimeType>
          <sourceMimeType>application/eps</sourceMimeType>
          <sourceMimeType>application/x-eps</sourceMimeType>
          <sourceMimeType>image/eps</sourceMimeType>
          <sourceMimeType>image/x-eps</sourceMimeType>
          <sourceMimeType>application/illustrator</sourceMimeType>
          <destinationMimeType>text/plain</destinationMimeType>
          <conversionSteps>
            <subconverter>ps2pdf</subconverter>
            <subconverter>pdf2text</subconverter>
          </conversionSteps>
        </converter>

XML Source

<extension point="converter" target="org.nuxeo.ecm.core.convert.service.ConversionServiceImpl">

    <converter class="org.nuxeo.ecm.platform.convert.plugins.CommandLineConverter" name="pdf2text">
      <sourceMimeType>application/pdf</sourceMimeType>
      <destinationMimeType>text/plain</destinationMimeType>
      <parameters>
        <parameter name="CommandLineName">pdftotext</parameter>
      </parameters>
    </converter>

    <converter class="org.nuxeo.ecm.core.convert.plugins.text.extractors.XML2TextConverter" name="xml2text">
      <sourceMimeType>text/xml</sourceMimeType>
      <sourceMimeType>application/xml</sourceMimeType>
      <destinationMimeType>text/plain</destinationMimeType>
    </converter>

    <converter class="org.nuxeo.ecm.core.convert.plugins.text.extractors.Html2TextConverter" name="html2text">
      <sourceMimeType>text/html</sourceMimeType>
      <sourceMimeType>text/xhtml</sourceMimeType>
      <destinationMimeType>text/plain</destinationMimeType>
    </converter>

    <converter class="org.nuxeo.ecm.core.convert.plugins.text.extractors.MD2TextConverter" name="md2text">
      <sourceMimeType>text/x-web-markdown</sourceMimeType>
      <destinationMimeType>text/plain</destinationMimeType>
    </converter>

    <converter class="org.nuxeo.ecm.core.convert.plugins.text.extractors.XL2TextConverter" name="xl2text">
      <sourceMimeType>application/vnd.ms-excel</sourceMimeType>
      <destinationMimeType>text/plain</destinationMimeType>
    </converter>

    <converter class="org.nuxeo.ecm.core.convert.plugins.text.extractors.XLX2TextConverter" name="xlx2text">
      <sourceMimeType>
      application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
      </sourceMimeType>
      <destinationMimeType>text/plain</destinationMimeType>
      <parameters>
       <parameter name="MAX_SIZE">3145728</parameter>
      </parameters>
    </converter>

    <converter class="org.nuxeo.ecm.core.convert.plugins.text.extractors.MSOffice2TextConverter" name="msoffice2text">
      <sourceMimeType>application/msword</sourceMimeType>
      <sourceMimeType>application/vnd.ms-powerpoint</sourceMimeType>
      <destinationMimeType>text/plain</destinationMimeType>
    </converter>

    <converter class="org.nuxeo.ecm.core.convert.plugins.text.extractors.RTF2TextConverter" name="rtf2text">
      <sourceMimeType>application/rtf</sourceMimeType>
      <sourceMimeType>text/rtf</sourceMimeType>
      <destinationMimeType>text/plain</destinationMimeType>
    </converter>

    <converter class="org.nuxeo.ecm.core.convert.plugins.text.extractors.DOCX2TextConverter" name="docx2text">
      <sourceMimeType>
        application/vnd.openxmlformats-officedocument.wordprocessingml.document
      </sourceMimeType>
      <destinationMimeType>text/plain</destinationMimeType>
    </converter>

    <converter class="org.nuxeo.ecm.core.convert.plugins.text.extractors.PPTX2TextConverter" name="pptx2text">
      <sourceMimeType>
        application/vnd.openxmlformats-officedocument.presentationml.presentation
      </sourceMimeType>
      <destinationMimeType>text/plain</destinationMimeType>
    </converter>

    <converter class="org.nuxeo.ecm.core.convert.plugins.text.extractors.OOo2TextConverter" name="oo2text">
      <sourceMimeType>application/vnd.sun.xml.impress</sourceMimeType>
      <sourceMimeType>application/vnd.sun.xml.impress.template</sourceMimeType>
      <sourceMimeType>
        application/vnd.oasis.opendocument.presentation
      </sourceMimeType>
      <sourceMimeType>
        application/vnd.oasis.opendocument.presentation-template
      </sourceMimeType>
      <sourceMimeType>application/vnd.sun.xml.calc</sourceMimeType>
      <sourceMimeType>application/vnd.sun.xml.calc.template</sourceMimeType>
      <sourceMimeType>
        application/vnd.oasis.opendocument.spreadsheet
      </sourceMimeType>
      <sourceMimeType>
        application/vnd.oasis.opendocument.spreadsheet-template
      </sourceMimeType>
      <sourceMimeType>application/vnd.sun.xml.writer</sourceMimeType>
      <sourceMimeType>application/vnd.sun.xml.writer.template</sourceMimeType>
      <sourceMimeType>application/vnd.oasis.opendocument.text</sourceMimeType>
      <sourceMimeType>
        application/vnd.oasis.opendocument.text-template
      </sourceMimeType>

      <destinationMimeType>text/plain</destinationMimeType>
    </converter>

    <converter class="org.nuxeo.ecm.core.convert.plugins.text.extractors.RFC822ToTextConverter" name="rfc822totext">
      <destinationMimeType>text/plain</destinationMimeType>
      <sourceMimeType>message/rfc822</sourceMimeType>
    </converter>

    <converter class="org.nuxeo.ecm.core.convert.plugins.text.extractors.FullTextConverter" name="any2text">
      <sourceMimeType>*</sourceMimeType>
      <destinationMimeType>text/plain</destinationMimeType>
    </converter>

    <converter class="org.nuxeo.ecm.platform.convert.plugins.CommandLineConverter" name="ps2pdf">
      <sourceMimeType>application/postscript</sourceMimeType>
      <sourceMimeType>application/eps</sourceMimeType>
      <sourceMimeType>application/x-eps</sourceMimeType>
      <sourceMimeType>image/eps</sourceMimeType>
      <sourceMimeType>image/x-eps</sourceMimeType>
      <sourceMimeType>application/illustrator</sourceMimeType>
      <destinationMimeType>application/pdf</destinationMimeType>
      <parameters>
        <parameter name="CommandLineName">ps2pdf</parameter>
      </parameters>
    </converter>

    <converter name="ps2pdf2text">
      <sourceMimeType>application/postscript</sourceMimeType>
      <sourceMimeType>application/eps</sourceMimeType>
      <sourceMimeType>application/x-eps</sourceMimeType>
      <sourceMimeType>image/eps</sourceMimeType>
      <sourceMimeType>image/x-eps</sourceMimeType>
      <sourceMimeType>application/illustrator</sourceMimeType>
      <destinationMimeType>text/plain</destinationMimeType>
      <conversionSteps>
        <subconverter>ps2pdf</subconverter>
        <subconverter>pdf2text</subconverter>
      </conversionSteps>
    </converter>

  </extension>