wkhtmltopdf does not support password protection, you need to do it in a second pass. i.e, convert html --> pdf using wkhtmltopdf and then use qpdf or similar libraries to convert pdf --> password protected pdf. If you are using node.js then there is a wrapper around it node-qpdf
Most helpful comment
wkhtmltopdf does not support password protection, you need to do it in a second pass. i.e, convert html --> pdf using wkhtmltopdf and then use qpdf or similar libraries to convert pdf --> password protected pdf. If you are using node.js then there is a wrapper around it node-qpdf