Copy link to clipboard
Copied
Hi,
Good day everybody, I have 500 documents that needs to be digitally signed and I want to automate this process. I wanted to know can I automate this process using javascript? If not, how can I automate it using action wizard without having to select the digital id and entering th password of the id manullay for each file?
Seeking for solutions 🙏🙏
Thank you
Yes, you can do it using a combination of an Action and a script.
Read the documentation of the signatureSign method of the Field object to learn how to do it.
Copy link to clipboard
Copied
Yes, you can do it using a combination of an Action and a script.
Read the documentation of the signatureSign method of the Field object to learn how to do it.
Copy link to clipboard
Copied
Ok thanks, I will give it a try, please help me if get stuck somewhere
Copy link to clipboard
Copied
// Get the signature field object
var signatureField = this.getField("signatureField");
// Get the security handler for digital signatures
var ppklite = security.getHandler("Adobe.PPKLite");
// Configure the digital signature parameters
var signatureParams = {
password: "alvarocuba5456",
location: "San Francisco, CA",
reason: "I approve this document",
contactInfo: "id@gmail.com",
appearance: "Handwritten"
};
// Login to the security handler
ppklite.login({cPassword: "alvarocuba5456"});
// Set the digital ID to use for the signature
var digitalID = {
oPKCS7: util.readFileIntoStream("/D/temp/myid.pfx"), // Path to PFX file
password: "alvarocuba5456"
};
// Add the digital signature to the signature field
signatureField.signatureSign(ppklite, signatureParams, digitalID);
// Logout of the security handler
ppklite.logout();
NotAllowedError: Security settings prevent access to this property or method.
Field.signatureSign:26:Console undefined:Exec
undefined
I tried this code but it is not working, if you don't mind can you please show a code snippet on how to do it properly?
Copy link to clipboard
Copied
Never mind, I just did it 😅, thanks for the help