marcbachmann / node-html-pdf

This repo isn't maintained anymore as phantomjs got dreprecated a long time ago. Please migrate to headless chrome/puppeteer.
MIT License
3.56k stars 545 forks source link

Password protected pdf generate? #120

Open ghost opened 8 years ago

ghost commented 8 years ago

By using this module can we make pdf files password protected?

marcbachmann commented 8 years ago

No, sorry, doesn't work.

ghost commented 8 years ago

ok. can you suggest me anything else to generate password protect pdf file in node js.

marcbachmann commented 8 years ago

No, don't know any module. But pdf protection isn't secure anyways. I prefer to protect something the right way by serving something with a server and grant access using a token.

Sorry, that this is not really the answer you expected. I hope that's not a business requirement you have :smile:

ghost commented 8 years ago

ok. :) It seems that you are putting it in next versions?

marcbachmann commented 8 years ago

It seems that you are putting it in next versions?

No

nrhirani commented 8 years ago

@manprajapat: You can use node-qpdf on the second pass, i.e after creating PDF through node-html-pdf. I was facing similar issue so went ahead and created a wrapper around qpdf which supports password protect. It supports AES 256, AES 128, RC4 128 & RC4 40 all supported by Adobe Reader.

ghost commented 8 years ago

how we can install qpdf in node js? can you tell me the process after downloading it from sourceforge?

vjoshihumancare commented 5 years ago

@marcbachmann Can you please share that wrapper.

vjoshihumancare commented 5 years ago

We have similar issue

georgeenathomas commented 5 years ago

@nrhirani Could you please share the wrapper you created? I am facing a similar issue and would be helpful

nrhirani commented 5 years ago

@vjoshihumancare @georgeenathomas as mentioned in one of the links in my previous comment - https://www.npmjs.com/package/node-qpdf