You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by rathnamm <ra...@sap.com> on 2015/07/13 12:07:01 UTC

Reg: Compare two MS Word Document using Apache POI

Hi Team,

Is there any standard API method is available in Apache POI to compare two
word document(MS Word) and generate the third document which is the
difference of those two documents?

Thanks and Regards,
Rathna.



--
View this message in context: http://apache-poi.1045710.n5.nabble.com/Reg-Compare-two-MS-Word-Document-using-Apache-POI-tp5719355.html
Sent from the POI - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org


Re: Reg: Compare two MS Word Document using Apache POI

Posted by Dominik Stadler <do...@gmx.at>.
Hi,

I don't think there is something ready made as it depends a lot on
what you see as "difference", i.e. only Text-Differences, or also
Formatting? And what about footer/header, pictures, tables, lists,
document settings like page-margins, ....

BTW, for text it should be fairly easy to extract the text-contents
using the ExtractorFactory and then using some other functionality to
do the diffing, for other things it naturally becomes more difficult
depending on how much formatting/document settings you need to include
in the diff.

One other option that I used before is something like the perl
HTML-Diff module
(http://search.cpan.org/~neilb/HTML-Diff/lib/HTML/Diff.pm) which can
compute differences between HTML documents, so if you can save the
document to HTML, it would be possible to use something like this. I
did not find a suitable Java functionality a few years back but this
might have changed...

Dominik.

On Mon, Jul 13, 2015 at 12:07 PM, rathnamm <ra...@sap.com> wrote:
> Hi Team,
>
> Is there any standard API method is available in Apache POI to compare two
> word document(MS Word) and generate the third document which is the
> difference of those two documents?
>
> Thanks and Regards,
> Rathna.
>
>
>
> --
> View this message in context: http://apache-poi.1045710.n5.nabble.com/Reg-Compare-two-MS-Word-Document-using-Apache-POI-tp5719355.html
> Sent from the POI - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
> For additional commands, e-mail: user-help@poi.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org