开发者

Is there XSLT available for transforming WordprocessingML into RTF

I currently generate docx files programmaticaly in C#.

I would like to transform my doc file 开发者_JS百科into RTF. This be done with an XSLT transform. Is there a transform that is publicly available?

I am also interested in trasnforming docx into PDF and HTML.


Look at OpenXMLViewer, which can be used to transform openXML(docx) into html.


As suggested in one of the comments, you could use Word Automation. You are already using c#, so running and controlling Word instances is pretty easy. I have done so in the past using VB6 and Java as well. Works pretty stable, and you get high quality RTF with very minimal effort.

Other routes could include taking a long way like converting your docx to DITA or DocBook and use their toolkits to make HTML and PDF out of it. The PDF route is probably using XSL-FO. With the proper XSL-FO renderer, generating RTF out of it should be merely selecting output format RTF instead of PDF.

HTH!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜