Platform Explorer / Nuxeo Platform LTS 2015 7.10

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-7.10.jar /OSGI-INF/convert-service-contrib.xml

Extension point

Extension point converter of component ConversionServiceImpl.

Contributed items

  • <converter class="org.nuxeo.ecm.core.convert.plugins.text.extractors.PDF2TextConverter" name="pdf2text">
          <sourceMimeType>application/pdf</sourceMimeType>
          <destinationMimeType>text/plain</destinationMimeType>
        </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>

XML source

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

    <converter class="org.nuxeo.ecm.core.convert.plugins.text.extractors.PDF2TextConverter" name="pdf2text">
      <sourceMimeType>application/pdf</sourceMimeType>
      <destinationMimeType>text/plain</destinationMimeType>
    </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>

  </extension>