Compare Document with the attachment PDF

Good day,

when comparing, sometimes it evaluates the change in PDF arrival sometimes it doesn’t. It changes over time. I am sending 3 versions of the document. The first 01 I always compare it to. Could you advise me what is going on with the attachment that there is a different comparison even though no one intervened in the attachment?

Thank you in advance for your reply

dockap26.docx (4.6 MB)

dockap50.docx (4.6 MB)

dockap01.docx (4.6 MB)

comparing version 01 and 26 should be the same as comparing version 01 and 50

@benestom Your dockap26.docx and dockap50.docx documents are protected, so I cannot check how MS Word behaves upon comparing the documents. Could you please provide the password to unprotect them using MS Word to avoid Aspose.Words involvement into the document processing?

I have compared the documents internals and dockap26.docx and dockap50.docx have different ProgIDs of the embedded PDF documents. In dockap26.docx ProgID is Acrobat.Document.DC but in the dockap50.docx it is AcroExch.Document.DC. Most likely this difference is detected by the comparer.

Open with 4321,
Aspose and the user who did not change this page work with the document. It is possible that it changed when opened in MS Word

Any settings on the client?..

@benestom Yes, looks like MS Word changes this after editing the document. Unfortunately, I do not see any option in MS Word to disable this.
I have tried unprotecting the document in MS Word and ProgID is changed in dockap50.docx from AcroExch.Document.DC to Acrobat.Document.DC.

versions of the document were created by many users and changed over time. It is possible that the changes were made based on which version of Acrobat a particular user had installed.

@benestom This might be a reason of the change. On my side I have Acrobat DC installed.

Could I identify the revision marks and in this case accept them?

@benestom You can accept revisions which are applied to OLE objects. For example see the following code:

Document v1 = new Document(@"C:\Temp\dockap01.docx");
Document v2 = new Document(@"C:\Temp\dockap26.docx");
v1.Compare(v2, "test", DateTime.Now);

v1.Revisions.Where(r => (r.ParentNode.NodeType == NodeType.Shape && ((Shape)r.ParentNode).OleFormat != null))
    .ToList().ForEach(r => r.Accept());

v1.Save(@"C:\Temp\out1.docx");