how to read .doc, .docx, .xls files in android

Wolverine picture Wolverine · Apr 2, 2012 · Viewed 10.3k times · Source

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?

Answer

kommradHomer picture kommradHomer · Apr 5, 2012

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