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

Free Support Forum - aspose.com

Re: Can you lock down text?

This is very useful… BUT (theres always a but) when using this type of lock it is then asking me for a password when I open the document and try and turn form protection off and of course I have no idea what the password is since I never set one.
When I click the ‘protect form’ button while manually editing a document it doesn’t ask for nor require a password, it just seems to essentially change the mode of the form but anyone can switch from protected mode to non-protected mode. This is really what I want to be able to set from Aspose.Words.
Is this possible?


Thanks for your request. If document does not have a protection password, Protect method assigns a random password that makes it impossible to unprotect the document in Microsoft Word
You should use another overload of this method. Please see the following link for more information.
Hope this helps.
Best regards.