webodf / ViewerJS

ViewerJS: Document Reader in JavaScript
http://viewerjs.org
1.94k stars 421 forks source link

support for txt files / docx and xlsx #245

Open yieldmore opened 6 years ago

yieldmore commented 6 years ago

How to make this library support txt files?

Also, are there heavy lifting components for showing xlsx/docx that you can include? I thought those were open formats.

ShrinivasMese commented 6 years ago

i am using this tag.

works fine for pdf, odt,ods documents

but i wanted to work for .xlsx, .doc ,.docs

zhangxuehong commented 4 years ago

can this work for .xlsx, .doc ,.docs? not OpenDocument Format

thz commented 4 years ago

ViewerJS (based on WebODF) uses the browser to render OpenDocument. It does not render xlsx/docx without pre-converting it (e.g. server side). txt should not be hard though.