How to compare 2 document

Hi,

I want to compare 2 document. which are as attached.

the text are at 3 different list levels.

the comparison needs to be done on list levels. e.g. list level 1 should be compared to the save list level text.

and i want only those paragraphs whose text is changed in the document.

we also have bookmarks at the list level 1 and 2.

Hi Kumar,

Thanks for your request. Unfortunately, Aspose.Words does not provide a document comparison feature. We will consider adding such feature in one of future versions of Aspose.Words, but unfortunately I cannot promise you that this feature will be available any time soon.

MS Word documents are very complex and it is very difficult to compare them. If you need just compare content of documents, you can convert both documents to txt and compare two strings. See the following link to learn how to convert document to string:
https://docs.aspose.com/words/java/extract-selected-content-between-nodes/

Using Aspose.Words you can find deleted and inserted content. Paragraph and Run nodes have IsDeleteRevision and IsInsertRevision properties that allow determining whether these nodes was inserted or deleted.
https://reference.aspose.com/words/java/com.aspose.words/Inline

Moreover, your request has also been linked to the appropriate issue as WORDSNET-2385, we will inform you of any developments.

Hi imran,

yesterday i had a chat with some one named alex in the live chat. he informed me that he would provide me the work around for the same in 24 hrs.
hence, this post.

i am waiting for the same.

Thanks,
Kumar Sabnis

Hi Kumar,

Thanks for the inquiry and sorry for delay. Have you tried above technique as an initiative? If you need further assistance, please let me know.

hi imran,

I had tried by it will give me the text. i want to compare 2 document. i want to show the comparison of 2 document. even if there is a character changed. in the document.

Hi Kumar,

Thanks for the inquiry and sorry for delay. Could you please share us latest code snippet? We will take a closer look and guide you accordingly.

The issues you have found earlier (filed as WORDSNET-2385) have been fixed in this .NET update and this Java update.

This message was posted using Notification2Forum from Downloads module by aspose.notifier.
(34)