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

Error in method encrypt, userPassword not recognize #215

Open
ClauRuizR opened this issue Aug 3, 2021 · 3 comments
Open

Error in method encrypt, userPassword not recognize #215

ClauRuizR opened this issue Aug 3, 2021 · 3 comments
Labels

Comments

@ClauRuizR
Copy link

ClauRuizR commented Aug 3, 2021

Screen Shot 2021-08-03 at 10 22 45 AM

@ClauRuizR ClauRuizR changed the title Error in method encrypt, userPassword not recog Error in method encrypt, userPassword not recognize Aug 3, 2021
@GuoliangWang
Copy link

So do mine

@mateenkiani
Copy link

I am also getting same error.
By doing this:

pdfDoc
    .encrypt({
        password: '123',
        ownerPassword: '123',
        userProtectionFlag: 4
    })
    .endPDF();

error is gone but encryption is not working.

@mateenkiani
Copy link

As a workaround you can add ts-ignore.

pdfDoc
    .encrypt({
        //  @ts-ignore
        userPassword: '123',
        ownerPassword: '123',
        userProtectionFlag: 4
    })
    .endPDF();

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

No branches or pull requests

4 participants