We are using Aspose.Words for .NET 17.1 to create diffs between docx files and to convert those diffs to html. When a footnote is added to a document, the resulting diff in docx format shows both the footnote used in the text as well as the footnote text at the bottom as added (correct behavior). The diff in html format only shows the text at the bottom as added. Change markers should be present at the usage point, but aren’t (bug).
This poses a problem for us because we present our users a filtered version of the html diff, which should contain the usage point, but currently doesn’t.
Find attached a zip file containing a Visual Studio 2015 Solution and test data.
Steps to reproduce:
- Compile solution
- Start tester.bat in the top level directory
- Find diff.docx and diff.html in the top level directory
Thanks for your inquiry. I have generated 17.1.0.docx and 17.1.0.html by using the following code and attached them here for your reference:
Document doc = new Document(MyDir + @"old.docx");
Document doc2 = new Document(MyDir + @"new.docx");
doc.Compare(doc2, "Author", DateTime.Now);
doc.Save(MyDir + @"17.1.0.html", new HtmlSaveOptions(SaveFormat.Html)
PrettyFormat = true,
ExportHeadersFootersMode = ExportHeadersFootersMode.None,
ExportImagesAsBase64 = true,
ImageResolution = 96 * 4 //96 is Default
doc.Save(MyDir + @"17.1.0.docx");
If you see undesired behavior in these documents, then please attach expected document here for our reference. We will investigate the structure of your expected document as to how you want your final output be generated like. You can create expected document using Microsoft Word.
Please also create a comparison screenshot highlighting (encircle) the problematic areas in this Aspose.Words generated HTML and attach it here for our reference.
Thanks for your cooperation.
the problem is with the html version. Find attached a zip file with the following content:
diff_found.html (the current result for reference)
diff_expected.html (the result we would prefer)
footnote-missing-change-markers.png (a screenshot of diff_found.html pointing out the problem)
Thanks for your inquiry.
While using the latest version of Aspose.Words i.e. 17.1.0, we managed to reproduce this issue on our end. We have logged this issue in our bug tracking system. The ID of this issue is WORDSNET-14836. Your request has also been linked to the appropriate issue and you will be notified as soon as it is resolved. Sorry for the inconvenience.