I am trying to compare two pdf and find the difference. When I run the below code, the code is always getting stuck at "Compare" function and I do not know what is going on. Please assist. Let me know if you need anything further.
using (FileStream fileStream = File.OpenRead("---Temporary License Path----"))
{
License license = new License();
license.SetLicense(fileStream);
}
string sourceDocumentPath = "----actual path to source document----";
string targetDocumentPath = "-----actual path to target document-----";
string outputPath = "----actual path to result document------------------";
using (Comparer comparer = new Comparer(sourceDocumentPath))
{
CompareOptions compareOptions = new CompareOptions
{
HeaderFootersComparison = false,
SensitivityOfComparison = 100,
};
comparer.Add(targetDocumentPath);
comparer.Compare(File.Create(outputPath), new SaveOptions(), compareOptions);
}