Skip to content
This repository has been archived by the owner on Apr 12, 2022. It is now read-only.

Support password protection for document #37

Open
leadlxx opened this issue Feb 1, 2020 · 4 comments
Open

Support password protection for document #37

leadlxx opened this issue Feb 1, 2020 · 4 comments

Comments

@leadlxx
Copy link

leadlxx commented Feb 1, 2020

For security reasons, can you support password protection for document?
I found that the add-wordprotection function only protects document replication

@PrzemyslawKlys
Copy link
Member

Add-WordProtection -WordDocument $WordDocument -EditRestrictions readOnly -Password '12345678'

image

That doesn't work? Keep in mind that Word protection isn't the most sophisticated one.

@leadlxx
Copy link
Author

leadlxx commented Feb 1, 2020

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

@PrzemyslawKlys
Copy link
Member

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.

@leadlxx
Copy link
Author

leadlxx commented Feb 4, 2020

Hope this DocX library can realize this function in the future. and thank you for your help

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants