Free Support Forum - aspose.com

Checking for Windows Rights Management properties

Hi,

Is it possible to check if a document is protected using Windows Rights Management?


Hi

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your request. Using Aspose.Words you can check whether document is protected in MS Word, Please see the following link for more information:

http://www.aspose.com/documentation/.net-components/aspose.words-for-.net-and-java/aspose.words.document.protectiontype.html

In addition, you can check whether a document is write-protected:

http://www.aspose.com/documentation/.net-components/aspose.words-for-.net-and-java/aspose.words.document.writeprotection.html

Best regards.

Hi,

The attached document is protected by Windows Rights Management (I can’t even read it, since I have my credentials are not valid).

When checking the ProtectionType property of the Aspose document I get AllowOnlyComments.

In theory that means that I can read the file and even add/modify comments on it, but that’s not the case.

Best regards,
Joao

Hi

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your request. Aspose.Words does not provide API to work with Windows Right Management properties. We will consider adding such API in one of future versions. You will be notified as soon as the issue is resolved.

Best regards.