hummusRecipe
hummusRecipe copied to clipboard
Decrypt password protected PDF
Sample of how to open a password protected PDF and remove the password?
I am afraid that the decryption is not implemented from HummusJS. You are welcome to make a pr for it. Thanks!
How to use decryption with HummusJS https://github.com/galkahana/HummusJS/blob/master/tests/Xcryption.js
Where the code should be implemented. https://github.com/chunyenHuang/hummusRecipe/blob/master/lib/Recipe.js#L75
To remove the password, the easiest way is to output the pdf to a new file.