Document.hasRevisions returns incorrect value using Java

Hi,

can you help me:

When I call method "document.hasRevision" like in following code for attached "doc" without licence they return "false" and that is ok, but when do with licenced Aspose.Words method return "true" and that is wrong. What is the problem?

public class HasRevisions {
@Test
public void hasRevisions() throws Exception {
String path = "/Affinia.doc";
Document document = new Document(path);
boolean hasRevisions = document.hasRevisions();
System.out.println(hasRevisions);
}
}

Hi Bojan,

Thanks for your request. I have managed to reproduce the problem on my side and linked you request to the appropriate issue. You will be notified as soon as it is resolved.

As a workaround you can call AcceptAllRevisions method.

Document doc = new Document(MyDir + "Affinia.doc");

doc.acceptAllRevisions();

boolean hasRevisions = doc.hasRevisions();

System.out.println(hasRevisions);

Hi Bojan,


Thanks for your inquiry.

Probably the reason why this behavior is occurring is because without the license set the imported content is truncated early before there are any revisions. With the license set the full content appears and the revisions are present.

Thanks,

The issues you have found earlier (filed as WORDSNET-5720) have been fixed in this .NET update and this Java update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.