I know that there n number of question in stackoverflow which is about this same issue, but i didn\'t get what i was looking for. I even tried using jwordconvert.jar
Disclosure: I work on docx4j
docx4j can produce PDF output; see ConvertOutPDF.java
If that quality is acceptable for your purposes, then you can use the docx4j Android build. See jaxb-can-be-made-to-run-on-android
You'll still need to give Java enough heap space; as per the blog post, to give Eclipse more heap space (symptom is ‘you get Unable to execute dex: Java heap space’) edit eclipse.ini, with something like:
-Xms256m
-Xmx4096m