Platform Explorer / Nuxeo Platform LTS 2015 7.10

Extension point outputFormat

Extension allowing to register a output formats for rendered template. If no chainId is specified, the ConvertBlob operation will be called with the mime-type as parameter.

    <outputFormat id="doc" label="DOC" mimetype="application/msword"/>
    <outputFormat chainId="deckJs2PDF" id="deckJsToPDF"
        label="PDF (from DeckJS)" mimetype="application/pdf"/>

Contribution Descriptor

Existing Contributions

  • nuxeo-template-rendering-core-7.10-HF02.jar /OSGI-INF/templateprocessor-contrib.xml
    <extension point="outputFormat" target="org.nuxeo.template.service.TemplateProcessorComponent">
    
        <documentation>Adds outputFormat for the following mime type
          <ul>
            <li>pdf</li>
            <li>odt</li>
            <li>doc</li>
            <li>docx</li>
          </ul>
        </documentation>
    
        <outputFormat id="pdf" label="PDF" mimetype="application/pdf"/>
        <outputFormat id="odt" label="ODT" mimetype="application/vnd.oasis.opendocument.text"/>
        <outputFormat id="doc" label="DOC" mimetype="application/msword"/>
        <outputFormat id="docx" label="DOCX" mimetype="application/vnd.openxmlformats-officedocument.wordprocessingml.document"/>
      </extension>