pofider / phantom-html-to-pdf

Highly scalable html to pdf conversion using phantom workers
MIT License
159 stars 33 forks source link

Can't we set password protection? #28

Closed ghost closed 8 years ago

ghost commented 8 years ago

I want to use this module for creating pdf file. but with a functionality of password protection. can we do that using this module?? or not?

bjrmatos commented 8 years ago

sorry, this is not possible.. phantomjs doesn't provide a way to protect a pdf file with a password

pofider commented 8 years ago

Adding password protection is not a concern of this package. Please try to use additional package and add password encryption to the produced pdf afterwards.

Maybe this would help https://github.com/nrhirani/node-qpdf