We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Document.hasRevisions returns incorrect value using Java


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 {
public void hasRevisions() throws Exception {
String path = "/Affinia.doc";
Document document = new Document(path);
boolean hasRevisions = document.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");


boolean hasRevisions = doc.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.


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.