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.
Asked
Active
Viewed 57 times
0
-
save it as [rtf](https://en.wikipedia.org/wiki/Rich_Text_Format)? – cybernetic.nomad Feb 23 '18 at 03:49
-
Hm.. I rather meant .txt format. – cerebrou Feb 23 '18 at 04:30
-
So that the style is preserved by means of some sort of tags, for example. – cerebrou Feb 23 '18 at 04:36
1 Answers
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