Open leadlxx opened 4 years ago
Add-WordProtection -WordDocument $WordDocument -EditRestrictions readOnly -Password '12345678'
That doesn't work? Keep in mind that Word protection isn't the most sophisticated one.
The scenario i want to implement is that set the document protection password, and you can only open the document by entering the protection password
The DocX library doesn't seem to have that functionality as far as I see.
You can take a look here: https://s12316.pcdn.co/wp-content/documentation/xceed-document-libraries-for-net/webframe.html#Xceed.Words.NET~Xceed.Words.NET.Licenser~LicenseKey.html
Even the pay version doesn't seem to have encryption/decryption in place.
Hope this DocX library can realize this function in the future. and thank you for your help
For security reasons, can you support password protection for document? I found that the add-wordprotection function only protects document replication