hummusRecipe icon indicating copy to clipboard operation
hummusRecipe copied to clipboard

Decrypt password protected PDF

Open ybdiel opened this issue 5 years ago • 1 comments

Sample of how to open a password protected PDF and remove the password?

ybdiel avatar Jan 18 '19 08:01 ybdiel

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.

chunyenHuang avatar Jan 22 '19 07:01 chunyenHuang