I’m converting a html file into pdf using python pisa module. I need to password protect it. I searched everywhere in pisa module and couldn’t find a solution for it. Is there anyway to password protect it using python?
The constraint is I want keep my file in html format. On demand basis, I want to convert it into pdf file and password protect it. I don’t want to use reportlab module.
You can with pyPdf which is optional for pisa but has an encryption method: