Can I lock a pdf with password? #95
-
We have a use-case where we want to generate a PDF from HTML or MD, but we want it protected with a password. |
Beta Was this translation helpful? Give feedback.
Answered by
simonhaenisch
Jul 27, 2021
Replies: 1 comment 1 reply
-
It's not something that I could easily implement because there's no API for it in Chromium. However you can use something like |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
simonhaenisch
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's not something that I could easily implement because there's no API for it in Chromium. However you can use something like
qpdf
to do this as a post-compilation step. There's a node wrapper for it: https://www.npmjs.com/package/node-qpdf.