galkahana / HummusJS

Node.js module for high performance creation, modification and parsing of PDF files and streams
http://www.pdfhummus.com
Other
1.15k stars 169 forks source link

Question: password mechanism behaves differently in createWriter vs recrypt? #387

Closed shaehn closed 5 years ago

shaehn commented 5 years ago

I am finding what appears to be an inconsistent behaviour when using the 'password' option for createWriter vs recrypt.

When using recrypt the following are set: {password:123, ownerPassword:123, userPassword:''} This setting produces a document with the permission password set.

When I feed the same set to createWriter, no passwords are found on the document whatsoever. Is this the expected behaviour?

shaehn commented 5 years ago

Ok... never mind. I seem to have run into an incorrect coding. The behaviour is the same.