pdf_reports icon indicating copy to clipboard operation
pdf_reports copied to clipboard

Encrypt PDF files

Open DTHerrera opened this issue 3 years ago • 1 comments

Hello, I just want to know if there is any option to encrypt and decrypt the generated PDF documents.

Thanks a lot.

DTHerrera avatar Sep 15 '22 03:09 DTHerrera

Hi, no not at the moment.

If you mean file encryption, that's outside the scope of the package, if you mean password-protection then the following applies: the document is generated based on a HTML template and exported to PDF; if there is a functionality in the weasyprint package that can perform password protection then there may be a way to implement this in pdf_reports. Alternatives are (batch-)protecting with another tool such as ghostscript.

veghp avatar Sep 15 '22 22:09 veghp