Comparison from StartState_Cleaned.docx with EndState_Cleaned.docx gives exception. (In the zip file)
The problem is not symmetrical (end compared to start doesnt throw). Updating to latest version of Aspose does not help.
Error occurred in comparing Word documents
GroupDocs.Comparison
at .( [] , [] , CompareOptions , )
at . ( , CompareOptions , SaveOptions )
at GroupDocs.Comparison.Comparer.(Document , Document , CompareOptions , SaveOptions , )
at GroupDocs.Comparison.Comparer.Compare(Stream document, SaveOptions saveOptions, CompareOptions compareOptions)
at GroupDocs.Comparison.Comparer.Compare(Stream document, CompareOptions compareOptions)
at Canea.Common.DocumentFormat.Standard.DocumentContentComparer.Compare(NamedFileDataStream oldestDoc, NamedFileDataStream newestDoc) in C:\CANEA.NET\Framework\dev\Common\Common.DocumentFormat.Standard\DocumentContentComparer.cs:line 42
at Canea.Framework.BLL.Docpoint.Document.DocpointDocumentComparisonHandler.RunComparison(NamedFileDataStream oldestDocument, NamedFileDataStream newestDocument) in C:\CANEA.NET\Framework\dev\Lib\FrameworkLib\BLL\Docpoint\Document\DocpointDocumentComparisonHandler.cs:line 187
compare options:
DetectStyleChanges = false, GenerateSummaryPage = false
(HeaderFootersComparison = false has no effect on this bug)
usage:
using (var comparisonService = new Comparer(oldDoc.DataStream))
{
comparisonService.Add(newDoc.DataStream);
Stream result = new MemoryStream();
comparisonService.Compare(result, CompareOptions);
}
Aspose.PDF 19.9.0
Aspose.Words 19.10.0
(Aspose.Calc 19.10.0)
the2filesforreproduction.zip (60.4 KB)