Description
PDF documents may be protected by a password to grant read permission. Censor should at least be able to read a password protected file, maybe also write password-protected.
Implementation
The used PyMuPDF library already supports reading/writing encrypted PDF files. Thus, it "only" requires to implement the dialog asking for the password.
Optional additions
- maybe support optional saving of the password for later use in Desktop's key store (seahorse?)
- maybe ask when saving a file that was encrypted if the redacted document should be encrypted, too
- allow to write any file with password protection
## Description
PDF documents may be protected by a password to grant read permission. Censor should at least be able to read a password protected file, maybe also write password-protected.
## Implementation
The used PyMuPDF library already supports reading/writing encrypted PDF files. Thus, it "only" requires to implement the dialog asking for the password.
### Optional additions
- [ ] maybe support optional saving of the password for later use in Desktop's key store (seahorse?)
- [ ] maybe ask when saving a file that was encrypted if the redacted document should be encrypted, too
- [ ] allow to write any file with password protection