That's tricky. One option might be to run OpenOffice in server mode (without a GUI), and have it open the file in question and save it to HTML. Then you display the HTML file in whichever way is convenient. The
JODConverter library simplifies this a lot.