how to read .doc, .docx, .xls files in android [duplicate]

浪尽此生 提交于 2020-01-10 03:50:11

问题


I am trying to show the PDF & .DOC files in android. I am able to show PDF files, but I have problem to show the .DOC, .DOCX, .PPT and .xls files. With the help of WORD-EXTRACTOR we can fetch the text of the doc file but the problem is it only gives text not images from .doc file.

I searched to convert the doc file to PDF file but didn't succeed. Is it possible to convert the .doc files to PDF on device ?

If we want to show the .doc or .docx document in the android devices so which library is useful to do so? Any suggestions?


回答1:


i suggest you do

doc to html
html to pdf

Convert Word doc to HTML programmatically in Java

theres no successful pure java "doc to pdf" but there are good "doc to html" and "html to pdf" ones



来源:https://stackoverflow.com/questions/9974468/how-to-read-doc-docx-xls-files-in-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!