title: Edit Microsoft-office .doc file in java using Apache POI
body: <p>I'm writing java code to achieve the followings.</p>
  
  <p>1.Read given Microsoft-office document(.doc) file.</p>
  
  <p>2.Search for given string in the file.</p>
  
  <p>3.Delete the given String located in any place. </p>
  
  <p>4.Insert or replace any given string at specified position.</p>
  
  <p>5.Write and save the updated file content into new .doc file.</p>
  
  <p>I have written a code to read, search, insert or replace, delete and save the file and it's working good, but i couldn't able to preserve the text format(such as font color, font size, justification, left and right indent, styles etc) applied in the input file.</p>
  
  <p>please anyone helps me to solve the issue.</p>
  
  <p>Thank you</p>