问题
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