Check out the below forum questions.
Your question lacks some detail. Could you give more information about what you want to achieve? Do you want to convert a .doc file into a .pdf? What does “I want to view the document with in the same page in mendix” mean? Do you want to view a .pdf file on a page?