I am trying to setup the temporary license using the below code. But it is not working, in the sense that it is suppose to work on the entire document and not just first 3 pages. Also the watermark is still present. Please help setting up this temporary license, so that I can get the full access of the product for the limited time.
License license = new License();
license.setLicense(new FileInputStream(new File("D:/Aspose.Words.lic")));
Document docA = new Document("D:/updated.docx");
Document docB = new Document("D:/original.doc");
docA.acceptAllRevisions();
docB.acceptAllRevisions();
CompareOptions options = new CompareOptions();
options.setTarget(ComparisonTargetType.CURRENT);
docB.compare(docA, "user", new Date(), options);
docB.save("D:/result.doc");