-1

I'm trying to display word documents in a browser without relying on cloud transcoders such as google docs.

  • For .pdf I use pdf.js
  • for odt I use webodf
  • How can I display .doc ?
  • How can I display .docx ?

I'm not interested in editing files, just viewing. And I'd prefer keeping the codec on the client-side, in (compiled) javascript.

Antoine
  • 13,494
  • 6
  • 40
  • 52

1 Answers1

0

I don't think there is a way to directly show doc and docx documents in a browser, unless you first convert them on the server side, and then use a library like WebODF to display them in the browser.

You can use Node.js for such server-sided conversion, which makes it lightweight and cross-platform.

trincot
  • 317,000
  • 35
  • 244
  • 286
damitj07
  • 2,689
  • 1
  • 21
  • 40