node-qpdf
node-qpdf copied to clipboard
Password Protection Encrypt and Decrypt is not working
When we are trying to make password protection below error is occuring. Could you please provide the solution to encrypt and decrypt the pdf with password protection
Error :spawn qpdf ENOENT
TypeScript Code : var qpdf = require('node-qpdf'); var file = path.join(__dirname, 'sample.pdf');
const options = {
keyLength: 128,
password: 'test1234'
}
qpdf.encrypt(file, options);
Same here!
Did you install qpdf on your OS?
Yes Installed and working. Thanks and Regards KARTHIK.M
On Friday, 27 November, 2020, 01:21:34 am IST, István Király <[email protected]> wrote:
Did you install qpdf on your OS?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.
I am receiving the same error as well, when trying to decrypt a pdf!
events.js:292
throw er; // Unhandled 'error' event
^
Error: spawn qpdf ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:269:19)
at onErrorNT (internal/child_process.js:465:16)
at processTicksAndRejections (internal/process/task_queues.js:80:21)
Ye kya bawaseer bana diye ho? maarte hai kasai mohalla jata hai calcutta!!
Did you install qpdf on your OS?
Btw that solved mine. Thanks!
I have the same issue on Win 10. qpdf installed and available in the terminal: