是否有任何Java API可用来比较两个Microsoft Word文档? [英] Is there any Java API available to compare two microsoft word documents?

查看:1742
本文介绍了是否有任何Java API可用来比较两个Microsoft Word文档?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要寻找一个Java API,它可以比较两个Microsoft Word文档。

I am looking for a Java API which can compare two microsoft word documents.

我们使用的是Linux服务器,所以我们不能在它安装Microsoft Word。

We are using Linux server so we can't install Microsoft Word in it.

编辑: - 我们要比较两个文件,​​事情并不常见,我们与一些颜色或任何其他方式突出什么都...所以,我的事情,我们必须既文档和突出含量是不常见的合并。

EDIT :- We want to compare two document and what ever things are not common that we have to highlight with some color or any other way ... So I thing we have to merge both document and highlight content which are not common.

推荐答案

有一个的Apache POI - 的Java API 做到这一点。

示例源$ C ​​$ c是这里

Example source code is here.

我发现了另一篇文章做在Java中,同样的事情,但使用COM窗户做到这一点。如果您使用的是Linux,它建议使用远程Windows计算机做的工作。本文包含详细的解释:从Java字

I found another article doing the same thing in Java, but uses windows COM to do this. If you are using Linux, it suggests using a remote windows machine to do the work. The article contains detailed explanation: Word from Java

这篇关于是否有任何Java API可用来比较两个Microsoft Word文档?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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