1

I want to build an android app which has word file as an input. I should be able to read from the word file and display the text. Text should retain all the formatting of the word file. For example is some text is colored red in word file , app should also display it as red colored text.

LearningBasics
  • 660
  • 1
  • 7
  • 24

1 Answers1

0

2 different libraries comes to my mind on handling microsoft office stuff are Apache POI and docx4j. Have you tried them on your purpose, because they have good API support for retrieving data from documents.

I used Apache POI for excel sheet and I know that it has a good api support for word doc too, but I heard that docx4j is better in handling word documents.

Some links you might check : for Apache POI Validating and reading a Word file in Android

for more info on word documents : What's a good Java API for creating Word documents?

Also please check following link if you are going with Apache POI; you might fail on adding library to your project.. Trying to port Apache POI to Android

Community
  • 1
  • 1
denizt
  • 713
  • 5
  • 21
  • docx4j is very good in terms of its results but takes a while to get into because you have to understand the structure of a `.docx` file. More importantly, it works only with `.docx` and not with `.doc`, so it's not an option if you want to handle old Word documents. – chiastic-security Aug 20 '14 at 08:02