0

Given an MS Word document, what would be the best way to convert it to a text document and preserve the formatting. So that later we are able to transform the text file back to the MS Word format and retrieve the original formatting.

cerebrou
  • 233
  • 1
  • 4
  • 9

1 Answers1

2

Depending on how complex the document structure and formatting is, you could use a tool such as Pandoc to convert an MS Word document to a plain text format such as Markdown-Extra.

As you are probably aware, SuperUser questions and answers are written in a subset of Markdown. It is also used in GitHub and other places for documentation. I use it a lot for generating websites (both static and dynamic).

If you have made heavy use of styling then converting the MS Word document to HTML5+CSS3 might preserve more - the tradeoff being much less readable text.


Related

RedGrittyBrick
  • 81,981
  • 20
  • 135
  • 205