Open hdkeeper opened 6 years ago
How about try to add password
?
You need to put a user password. Dont leave it empty.
Oh. Now i see what you are trying to do. Providing a password to modify only means that the password is used for reading the original pdf. It doesnt add password. If you want to turn an unprotectrd document to one thats protected, use hummus.recrypt. And make sure to provide a user password
So I have to process my document with two passes. At the first pass I fill form fields etc. At the second pass I should use hummus.recrypt() on the document obtained from the first pass.
Hi @hdkeeper, I'm trying to do the same thing. Did you manage to make this work? It seems that the document obtained from the first pass is not released until the session is over Thanks
Hi there. I'm trying to use HummusJS to fill and lock a PDF form blank. But it seems that hummus.createWriterToModify() totally ignores the 3rd argument -- an options object.
The form fields are filled correctly, but the resulting PDF stays unprotected, although it should. Am I missing some point? Consider the sample code below.