You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to protect my PDF that has a watermark from being removed, while the PDF should not require a password when opened for read, I achieved that in HummusJS by setting ownerPassword with an empty userPassword like this :
Hi @chunyenHuang I did not want to create a PR for this because my fix is to completely remove the method _getEncryptOptions(options); and I am not sure about the purpose of it, so removing it might break something.
If you want me to remove it I can create a PR for it.
hummusRecipe/lib/encrypt.js
Line 91 in 54d334f
I need to protect my PDF that has a watermark from being removed, while the PDF should not require a password when opened for read, I achieved that in HummusJS by setting ownerPassword with an empty userPassword like this :
Now with hummusRecipe, when I try the following code, the out.pdf is not protected in modification
because 'userPassword' is not being provided to hummus in 'encryption_' in encrypt.js line 106 :
and on documentation of HummusJS it is clearly mentionned that ownerPassword is only used when we pass userPassword:
A workaround is to pass the options as is to HummusJS and not use the _getEncryptOptions method
Can you please fix. Thanks
The text was updated successfully, but these errors were encountered: