I got the openoffice headless and jodconvert working. It works fine to convert Microsoft documents to HTML and RTF through command line. But there is no entry to add these formats through the MIME Converter interface. It would be great if have this feature added because HTML and RTF formats may be loaded to a text area and edited with TinyMCE editor.

Comments

ZyanKLee’s picture

add this before lines 145 and 161 in sites/all/modules/fileframework/formats/document/file_document.module:

      'text/html' => array(
        'pipeline' => '{localhost:8100}{mv} "[in_file]" "[in_file].doc"; {java} -jar {{/opt/jodconverter/lib/jodconverter-cli.jar}} -f html "[in_file].doc"; {mv} "[in_file].doc" "[in_file]"; {mv} "[in_file].html" "[out_file]"',
        'handlers' => array('file_slideshow_pdf'),
      ),
      'text/rtf' => array(
        'pipeline' => '{localhost:8100}{mv} "[in_file]" "[in_file].doc"; {java} -jar {{/opt/jodconverter/lib/jodconverter-cli.jar}} -f rtf "[in_file].doc"; {mv} "[in_file].doc" "[in_file]"; {mv} "[in_file].rtf" "[out_file]"',
        'handlers' => array('file_slideshow_pdf'),
      ),

and please give me a ping if it works

jvieille’s picture

FF provides converters out of the box, and allows to modify them.
I don't see any reasons it could not allow to add entries.

So the feature request would be to allow adding converters entries, not a specific one.

Also, if new suggested converters could be defaulted by the code or database update, it would be nice too.

johanneshahn’s picture

+1

gobinathm’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

Closing the issue. It was inactive for a long time & it's related to a Drupal Version which is not supported anymore