AnApprentice
AnApprentice

Reputation: 110960

Converting a DOCX to a DOC in Ruby

How do I convert a DOCX file to a DOC using Ruby?

Upvotes: 2

Views: 1280

Answers (2)

Paul Jowett
Paul Jowett

Reputation: 6581

DOCX support from OpenOffice and Libre Office is still pretty weak. There is a free 3rd party lib (odfconverter) that is much better at formatting. If you can link this in with your app or do some preprocessing that would be a likely good result. Note that new versions of MS Office read ODT format fairly well so that may provide another avenue for you to investigate. So, odfconverter would give you docx->odt. Docmosis or JODReports could do the odt->doc.

Upvotes: 0

Pierre-Luc Simard
Pierre-Luc Simard

Reputation: 2721

Take a look at unoconv. It does all the conversion supported by OpenOffice from the command line

http://dag.wieers.com/home-made/unoconv/

Upvotes: 3

Related Questions