Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encrypt PDF files #19

Open
DTHerrera opened this issue Sep 15, 2022 · 1 comment
Open

Encrypt PDF files #19

DTHerrera opened this issue Sep 15, 2022 · 1 comment

Comments

@DTHerrera
Copy link

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

Thanks a lot.

@veghp
Copy link
Member

veghp commented Sep 15, 2022

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.

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

No branches or pull requests

2 participants