hummusRecipe
hummusRecipe copied to clipboard
Error in method encrypt, userPassword not recognize
![Screen Shot 2021-08-03 at 10 22 45 AM](https://user-images.githubusercontent.com/10028740/128032502-35cd19cb-3f2a-4ec9-ae38-3ed8d290bf1c.png)
So do mine
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.
As a workaround you can add ts-ignore.
pdfDoc
.encrypt({
// @ts-ignore
userPassword: '123',
ownerPassword: '123',
userProtectionFlag: 4
})
.endPDF();