Platform Explorer / Nuxeo Platform LTS 2015 7.10

Contribution org.nuxeo.ecm.platform.templates.convert.plugins--converter

This contribution is part of XML component org.nuxeo.ecm.platform.templates.convert.plugins inside nuxeo-template-rendering-core-7.10-HF02.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.JODBasedConverter" name="sdttext2odt">
          <destinationMimeType>application/vnd.oasis.opendocument.text</destinationMimeType>
    
          <sourceMimeType>text/xml</sourceMimeType>
          <sourceMimeType>text/html</sourceMimeType>
          <sourceMimeType>text/plain</sourceMimeType>
          <sourceMimeType>text/rtf</sourceMimeType>
    
          <!-- Microsoft office documents -->
          <sourceMimeType>application/msword</sourceMimeType>
    
          <!-- Microsoft office 2007 documents -->
          <sourceMimeType>
            application/vnd.openxmlformats-officedocument.wordprocessingml.document
          </sourceMimeType>
    
          <!-- OpenOffice.org 1.x documents -->
          <sourceMimeType>application/vnd.sun.xml.writer</sourceMimeType>
          <sourceMimeType>application/vnd.sun.xml.writer.template</sourceMimeType>
    
          <!-- OpenOffice.org 2.x documents -->
          <sourceMimeType>application/vnd.oasis.opendocument.text</sourceMimeType>
          <sourceMimeType>
            application/vnd.oasis.opendocument.text-template
          </sourceMimeType>
    
          <!-- WordPerfect -->
          <sourceMimeType>application/wordperfect</sourceMimeType>
    
        <parameters>
            <parameter name="ooo_host_name">
              ${org.nuxeo.ecm.platform.transform.ooo.host.name}
            </parameter>
            <parameter name="ooo_host_port">
              ${org.nuxeo.ecm.platform.transform.ooo.host.port}
            </parameter>
        </parameters>
       </converter>
  • <converter class="org.nuxeo.template.processors.convert.AnyToODTConverter" name="any2odt">
    
          <destinationMimeType>application/vnd.oasis.opendocument.text</destinationMimeType>
    
          <sourceMimeType>text/x-web-markdown</sourceMimeType>
          <sourceMimeType>text/xml</sourceMimeType>
          <sourceMimeType>text/html</sourceMimeType>
          <sourceMimeType>text/plain</sourceMimeType>
          <sourceMimeType>text/rtf</sourceMimeType>
    
          <!-- Microsoft office documents -->
          <sourceMimeType>application/msword</sourceMimeType>
    
          <!-- Microsoft office 2007 documents -->
          <sourceMimeType>
            application/vnd.openxmlformats-officedocument.wordprocessingml.document
          </sourceMimeType>
    
          <!-- OpenOffice.org 1.x documents -->
          <sourceMimeType>application/vnd.sun.xml.writer</sourceMimeType>
          <sourceMimeType>application/vnd.sun.xml.writer.template</sourceMimeType>
    
          <!-- OpenOffice.org 2.x documents -->
          <sourceMimeType>application/vnd.oasis.opendocument.text</sourceMimeType>
          <sourceMimeType>
            application/vnd.oasis.opendocument.text-template
          </sourceMimeType>
    
          <!-- WordPerfect -->
          <sourceMimeType>application/wordperfect</sourceMimeType>
       </converter>
  • <converter class="org.nuxeo.ecm.platform.convert.plugins.JODBasedConverter" name="any2docx">
    
          <destinationMimeType>application/vnd.openxmlformats-officedocument.wordprocessingml.document</destinationMimeType>
    
          <sourceMimeType>text/xml</sourceMimeType>
          <sourceMimeType>text/html</sourceMimeType>
          <sourceMimeType>text/plain</sourceMimeType>
          <sourceMimeType>text/rtf</sourceMimeType>
    
          <!-- Microsoft office documents -->
          <sourceMimeType>application/msword</sourceMimeType>
    
          <!-- Microsoft office 2007 documents -->
          <sourceMimeType>
            application/vnd.openxmlformats-officedocument.wordprocessingml.document
          </sourceMimeType>
    
          <!-- OpenOffice.org 1.x documents -->
          <sourceMimeType>application/vnd.sun.xml.writer</sourceMimeType>
          <sourceMimeType>application/vnd.sun.xml.writer.template</sourceMimeType>
    
          <!-- OpenOffice.org 2.x documents -->
          <sourceMimeType>application/vnd.oasis.opendocument.text</sourceMimeType>
          <sourceMimeType>
            application/vnd.oasis.opendocument.text-template
          </sourceMimeType>
    
          <!-- WordPerfect -->
          <sourceMimeType>application/wordperfect</sourceMimeType>
       </converter>
  • <converter class="org.nuxeo.ecm.platform.convert.plugins.JODBasedConverter" name="any2doc">
    
          <destinationMimeType>application/msword</destinationMimeType>
    
          <sourceMimeType>text/xml</sourceMimeType>
          <sourceMimeType>text/html</sourceMimeType>
          <sourceMimeType>text/plain</sourceMimeType>
          <sourceMimeType>text/rtf</sourceMimeType>
    
          <!-- Microsoft office documents -->
          <sourceMimeType>application/msword</sourceMimeType>
    
          <!-- Microsoft office 2007 documents -->
          <sourceMimeType>
            application/vnd.openxmlformats-officedocument.wordprocessingml.document
          </sourceMimeType>
    
          <!-- OpenOffice.org 1.x documents -->
          <sourceMimeType>application/vnd.sun.xml.writer</sourceMimeType>
          <sourceMimeType>application/vnd.sun.xml.writer.template</sourceMimeType>
    
          <!-- OpenOffice.org 2.x documents -->
          <sourceMimeType>application/vnd.oasis.opendocument.text</sourceMimeType>
          <sourceMimeType>
            application/vnd.oasis.opendocument.text-template
          </sourceMimeType>
    
          <!-- WordPerfect -->
          <sourceMimeType>application/wordperfect</sourceMimeType>
       </converter>
  • <converter name="md2odt">
          <conversionSteps>
            <subconverter>md2html</subconverter>
            <subconverter>any2odt</subconverter>
          </conversionSteps>
       </converter>

XML source

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

   <converter class="org.nuxeo.ecm.platform.convert.plugins.JODBasedConverter" name="sdttext2odt">
      <destinationMimeType>application/vnd.oasis.opendocument.text</destinationMimeType>

      <sourceMimeType>text/xml</sourceMimeType>
      <sourceMimeType>text/html</sourceMimeType>
      <sourceMimeType>text/plain</sourceMimeType>
      <sourceMimeType>text/rtf</sourceMimeType>

      <!-- Microsoft office documents -->
      <sourceMimeType>application/msword</sourceMimeType>

      <!-- Microsoft office 2007 documents -->
      <sourceMimeType>
        application/vnd.openxmlformats-officedocument.wordprocessingml.document
      </sourceMimeType>

      <!-- OpenOffice.org 1.x documents -->
      <sourceMimeType>application/vnd.sun.xml.writer</sourceMimeType>
      <sourceMimeType>application/vnd.sun.xml.writer.template</sourceMimeType>

      <!-- OpenOffice.org 2.x documents -->
      <sourceMimeType>application/vnd.oasis.opendocument.text</sourceMimeType>
      <sourceMimeType>
        application/vnd.oasis.opendocument.text-template
      </sourceMimeType>

      <!-- WordPerfect -->
      <sourceMimeType>application/wordperfect</sourceMimeType>

    <parameters>
        <parameter name="ooo_host_name">
          ${org.nuxeo.ecm.platform.transform.ooo.host.name}
        </parameter>
        <parameter name="ooo_host_port">
          ${org.nuxeo.ecm.platform.transform.ooo.host.port}
        </parameter>
    </parameters>
   </converter>

   <converter class="org.nuxeo.template.processors.convert.AnyToODTConverter" name="any2odt">

      <destinationMimeType>application/vnd.oasis.opendocument.text</destinationMimeType>

      <sourceMimeType>text/x-web-markdown</sourceMimeType>
      <sourceMimeType>text/xml</sourceMimeType>
      <sourceMimeType>text/html</sourceMimeType>
      <sourceMimeType>text/plain</sourceMimeType>
      <sourceMimeType>text/rtf</sourceMimeType>

      <!-- Microsoft office documents -->
      <sourceMimeType>application/msword</sourceMimeType>

      <!-- Microsoft office 2007 documents -->
      <sourceMimeType>
        application/vnd.openxmlformats-officedocument.wordprocessingml.document
      </sourceMimeType>

      <!-- OpenOffice.org 1.x documents -->
      <sourceMimeType>application/vnd.sun.xml.writer</sourceMimeType>
      <sourceMimeType>application/vnd.sun.xml.writer.template</sourceMimeType>

      <!-- OpenOffice.org 2.x documents -->
      <sourceMimeType>application/vnd.oasis.opendocument.text</sourceMimeType>
      <sourceMimeType>
        application/vnd.oasis.opendocument.text-template
      </sourceMimeType>

      <!-- WordPerfect -->
      <sourceMimeType>application/wordperfect</sourceMimeType>
   </converter>

   <converter class="org.nuxeo.ecm.platform.convert.plugins.JODBasedConverter" name="any2docx">

      <destinationMimeType>application/vnd.openxmlformats-officedocument.wordprocessingml.document</destinationMimeType>

      <sourceMimeType>text/xml</sourceMimeType>
      <sourceMimeType>text/html</sourceMimeType>
      <sourceMimeType>text/plain</sourceMimeType>
      <sourceMimeType>text/rtf</sourceMimeType>

      <!-- Microsoft office documents -->
      <sourceMimeType>application/msword</sourceMimeType>

      <!-- Microsoft office 2007 documents -->
      <sourceMimeType>
        application/vnd.openxmlformats-officedocument.wordprocessingml.document
      </sourceMimeType>

      <!-- OpenOffice.org 1.x documents -->
      <sourceMimeType>application/vnd.sun.xml.writer</sourceMimeType>
      <sourceMimeType>application/vnd.sun.xml.writer.template</sourceMimeType>

      <!-- OpenOffice.org 2.x documents -->
      <sourceMimeType>application/vnd.oasis.opendocument.text</sourceMimeType>
      <sourceMimeType>
        application/vnd.oasis.opendocument.text-template
      </sourceMimeType>

      <!-- WordPerfect -->
      <sourceMimeType>application/wordperfect</sourceMimeType>
   </converter>

   <converter class="org.nuxeo.ecm.platform.convert.plugins.JODBasedConverter" name="any2doc">

      <destinationMimeType>application/msword</destinationMimeType>

      <sourceMimeType>text/xml</sourceMimeType>
      <sourceMimeType>text/html</sourceMimeType>
      <sourceMimeType>text/plain</sourceMimeType>
      <sourceMimeType>text/rtf</sourceMimeType>

      <!-- Microsoft office documents -->
      <sourceMimeType>application/msword</sourceMimeType>

      <!-- Microsoft office 2007 documents -->
      <sourceMimeType>
        application/vnd.openxmlformats-officedocument.wordprocessingml.document
      </sourceMimeType>

      <!-- OpenOffice.org 1.x documents -->
      <sourceMimeType>application/vnd.sun.xml.writer</sourceMimeType>
      <sourceMimeType>application/vnd.sun.xml.writer.template</sourceMimeType>

      <!-- OpenOffice.org 2.x documents -->
      <sourceMimeType>application/vnd.oasis.opendocument.text</sourceMimeType>
      <sourceMimeType>
        application/vnd.oasis.opendocument.text-template
      </sourceMimeType>

      <!-- WordPerfect -->
      <sourceMimeType>application/wordperfect</sourceMimeType>
   </converter>

   <converter name="md2odt">
      <conversionSteps>
        <subconverter>md2html</subconverter>
        <subconverter>any2odt</subconverter>
      </conversionSteps>
   </converter>

  </extension>