title: How to read data from a file (word document, excel) with format in Java?
body: <p>I have a file formatting.doc. It has some text in it. Now I added some format to the text in the document. I have added space before the start of first paragraph, underlined some words, made some words in bold and centrally justified the paragraph. </p>
  
  <p>In my application I tried to read the file using Apache POI and then display in PDF format using iText. But, the text that Apache POI returns is raw data. i.e. without any formatting.</p>
  
  <p>Is there any way in Java to read the text of a file with all its formatting?</p>