在html中将html转换为doc [英] Convert html to doc in java

查看:171
本文介绍了在html中将html转换为doc的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将html或xhtml文档(最好带有样式)转换为Microsoft .doc和/或.docx格式。

I would like to convert either an html or xhtml document (preferably with styles) to Microsoft .doc and/or .docx format.

似乎有很多这样做的另一种方式的例子,但我还没有找到任何有用的例子转换为MS文档格式。

There seem to be plenty of examples for doing this the other way around but I haven't found any useful examples for converting to ms document formats.

任何人都可以指向一个API或提供一个例如为此请

非常感谢

Can anyone point me to an api or provide an example for doing this please

推荐答案

docx4j 2.8。 0支持将XHTML文档和片段转换为docx内容。披露:我写了一些代码。

docx4j 2.8.0 supports converting XHTML documents and fragments to docx content. Disclosure: I wrote some of the code.

这篇关于在html中将html转换为doc的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆