Modify form field value in secured pdf documents
Hi,
I'm trying to modify the values of some form fields in a secured pdf document.
The code is located in a Folder level script. I have also tried to put the code inside a trustedFunction.
Some of the security settings in the document:
- Password Security
- Changing the Document: Not Allowed
- Filling of form fields: Allowed
- Signing: Allowed
The code is located in a "Folder level script". I have also tried to put the code inside a trustedFunction.
The code works fine in a non secured document:
var f = this.getField("nameOfField");
console.println("Old value= " + f.value); // Prints the correct value
f.value = "New value";
console.println("New value = " + f.value); // Prints the old value
No error message in the console.
Any help to guide me in the right direction will be greatly appreciated!
--Olav
