good day,
I am asking for your advice, when I compare two documents, I get a revision mark on the links. The links are the same when I compare in Word it can’t find the difference.
Does aspose washer evaluate the difference in links in two files?
Thanks in advance for the advice.
@benestom Could you please attach your documents here for testing? We will check the issue and provide you more information.
My code:
Document docA158 = new Document(@"...\2tc005_p26Z1V7.1.docx");
Document docB158 = new Document(@"...\2TC005_ příloha 26Z2V0.1Nahrazena.docx");
if (docA158.Revisions.Count > 0)
docA158.Revisions.AcceptAll();
if (docB158.Revisions.Count > 0)
docB158.Revisions.AcceptAll();
CompareOptions compareOptions158 = new CompareOptions();
//compareOptions158.IgnoreFormatting = true;
/*compareOptions158.IgnoreCaseChanges = false;
compareOptions158.IgnoreComments = false; ///
compareOptions158.IgnoreTables = false;
compareOptions158.IgnoreFields = false;
compareOptions158.IgnoreFootnotes = false;
compareOptions158.IgnoreTextboxes = false;
compareOptions158.IgnoreHeadersAndFooters = true;
compareOptions158.IgnoreDmlUniqueId = true;
*/
compareOptions158.Target = ComparisonTargetType.New;
docA158.Compare(docB158, "Test", DateTime.Now, compareOptions158);
2tc005_p26Z1V7.1.docx (106.8 KB)
2TC005_ příloha 26Z2V0.1Nahrazena.docx (107.2 KB)
On page 7, o evaluates changes in links…
@benestom Thank you for additional information. As I can see Aspose.Words behaves the same as MS Word with the links. I have simplified your documents to one page with the table that contains the mentioned links. Please see the attachment: in1.docx (84.1 KB) in2.docx (83.9 KB) ms.docx (24.0 KB) out.docx (17.9 KB)
As you can see MS Word also detect changes in links.
thank you for the answer, that link is probably from older versions of office and it changes at some step in the workFlow. I arranged for this link to be rewritten in the latest version of MS Word.
@benestom Yes, internally the links are represented differently. In one document it is represented like this:
<w:r>
<w:fldChar w:fldCharType="begin"/>
</w:r>
<w:r>
<w:instrText>HYPERLINK "https://portal.cezdata.corp:9030/goms/mozp/mozp-detail?id=217058"</w:instrText>
</w:r>
<w:r>
<w:fldChar w:fldCharType="separate"/>
</w:r>
<w:r>
<w:rPr>
<w:rStyle w:val="Hypertextovodkaz"/>
<w:rFonts w:cs="Arial"/>
<w:b/>
<w:bCs/>
<w:szCs w:val="22"/>
</w:rPr>
<w:t>U2-LN-OPPPO-A-utesneny PO a PD</w:t>
</w:r>
<w:r>
<w:fldChar w:fldCharType="end"/>
</w:r>
in another like this:
<w:hyperlink r:id="rId42" w:history="1">
<w:r w:rsidR="00B57DDB">
<w:rPr>
<w:rStyle w:val="Hypertextovodkaz"/>
<w:rFonts w:cs="Arial"/>
<w:b/>
<w:bCs/>
<w:szCs w:val="22"/>
</w:rPr>
<w:t>U2-LN-OPPPO-A-utesneny PO a PD</w:t>
</w:r>
</w:hyperlink>
But visualy in MS Word they look the same and both representation are valid.