Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Password Protection Encrypt and Decrypt is not working #15

Open
karthiktanj opened this issue Oct 5, 2020 · 7 comments
Open

Password Protection Encrypt and Decrypt is not working #15

karthiktanj opened this issue Oct 5, 2020 · 7 comments

Comments

@karthiktanj
Copy link

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);
@michchan
Copy link

Same here!

@LaKing
Copy link

LaKing commented Nov 26, 2020

Did you install qpdf on your OS?

@karthiktanj
Copy link
Author

karthiktanj commented Nov 27, 2020 via email

@arladmin
Copy link

arladmin commented Dec 22, 2020

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)

@shashanksaxena
Copy link

Ye kya bawaseer bana diye ho? maarte hai kasai mohalla jata hai calcutta!!
Screenshot (1)

@michchan
Copy link

Did you install qpdf on your OS?

Btw that solved mine. Thanks!

@ljadrbln
Copy link

I have the same issue on Win 10.
qpdf installed and available in the terminal:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants