an extension to the docx gem that provides a to_html method for documents
docx
to_html
gem install docx-html
require 'docx/html' d = Docx::Document.open('test.docx') d.to_html