Is there XSLT for converting WordprocessingML to RTF

I am currently creating programmaticaly docx files in C #.

I would like to convert the doc file to RTF. This is done using the XSLT transform. Is there a public conversion?

I am also interested in converting docx to PDF and HTML.

+4
source share
2 answers

Check out OpenXMLViewer , which you can use to convert openXML (docx) to html.

0
source

As suggested in one of the comments, you can use Word Automation. You are already using C #, so starting and managing Word instances is pretty simple. In the past, I have done this using VB6 and Java. It works pretty stably, and you get high-quality RTF with minimal effort.

Other routes can include a long journey, like converting your docx to DITA or DocBook and using their tools to extract HTML and PDF from it. PDF traffic probably uses XSL-FO. Using the proper XSL-FO renderer, generating RTF from it should just be the choice of RTF format instead of PDF.

NTN!

0
source

All Articles