var docA = new Document("Input1.pdf");
var docB = new Document("Input2.pdf");
// Перед сравнением не должно быть ревизий.
docA.Compare(docB, "Author Name", DateTime.Now);
@PiterG In your code you are using Aspose.Pdf.Document, but in the C# example Aspose.Words.Document is used. Aspose.PDF and Aspose.Words are different products.
Unfortunately, C++ version of Aspose.Words does not support PDF as load format. This feature is supported only in .NET and Python versions of Aspose.Words.
@PiterG Please note, Aspose.Words is designed to work with MS Word documents. MS Word documents are flow documents and they have structure very similar to Aspose.Words Document Object Model. On the other hand PDF documents are fixed page format documents . While loading PDF document, Aspose.Words converts Fixed Page Document structure into the Flow Document Object Model. Unfortunately, such conversion does not guaranty 100% fidelity. So it is not always possible to retain PDF document layout after processing it using Aspose.Words.
Its good to know that you were able to implement the solution. Furthermore, please note that free online Aspose Apps are mixture of different Aspose Products and in order to get the code snippet or hints about the approach implemented behind them, you can please create an inquiry in the respective forums. You will be assisted there accordingly.