Hi Team,
When i am trying to compare 2 PDF files, it is giving “Incorrect Password” with multiple page PDF document. When I am trying to compare a single page document then resultant PDF is generated but it is empty. Code snippet used is as below, Can you please check, what can be issue ?
string recordedFile = @"…/…/Documents/Document1.pdf";
string FileName = @"…/…/Documents/Document2.pdf";
string resultFile = @"…/…/Compared/Result1.pdf";
using (Comparer comparer = new Comparer(recordedFile))
{
comparer.Add(FileName);
////SaveOptions saveoptions = new SaveOptions();
////saveoptions.Password = “test”;
////CompareOptions compareoptions = new CompareOptions();
////compareoptions.PasswordSaveOption = PasswordSaveOption.;
////comparer.Compare(resultFile, saveoptions);
comparer.Compare(resultFile);
}
We are also exploring Aspose for the same comparison purpose, we would like to have a Word Style comparison where new additions will be indicated in red, deleted text will be striked-off, same text is represented as green. This comparison is of 2 PDF files, similar to versions of same document but additions/deletions from the old file. In aspose, we have found code snippets to compare 2 word documents, which mostly suites our requirement but could not find similar comparison with PDF docs, do you have an example of such comparisons in groupdocs or Aspose please?
Please note that, we have not yet taken Groupdocs Temporary License.
Thanks,
Khaled