PDF form with JavaScript and password, signatures, esignatures
I have a question regarding the security of PDF forms.
The forms I create contain a lot of script code. I would like to secure access to scripts. Of course, I can set up a password that prohibits editing the document without knowing it, but here there is a problem, because I cannot sign the form with the password electronically with a trusted signature.
The forms that I create for the city hall obviously require the possibility of digital signing, because this is, as we say in Poland, "the salt of this earth". However, I do not want to share the script code for two reasons: the first is security, and the second is, of course, to protect my work as a developer.
I've read a lot about passwords in PDF but I feel a bit lost, I haven't found it anywhere (maybe I was looking wrong). On the helpx.adobe.com website, in the topic of password protection, I found the information that "Passwords cannot be added to signed or certified documents." OK, sure, and vice versa? Can I add a signature to a document with a password?
Basically the question is:
How to protect a PDF form against unauthorized access to scripts while maintaining the possibility of signing and certifying the file?
The script code protection should remain active even if the document expires the signature.
