JS SDK visible digital signature
Is it possible to use SDK JavaScript API to sign (visible digital sign) a file in the browser on the client side?
in sample for js
{
// if ACROSDK.sigDigitalIDPath is not spcified, ask for user input
if(ACROSDK.sigDigitalIDPath == "UNKNOWN"){
var cResponse = app.response({
cQuestion: "Input your digital ID path:",
cTitle: "Digital Signature",
cDefault: "/C/DrTest.pfx",
});
if ( cResponse == null) {
app.alert("No input.");
return;
}
else
SetUserDigitalIDPath(cResponse);
}
// if ACROSDK.sigUserPwd is not spcified, ask for user input
if(ACROSDK.sigUserPwd == "UNKNOWN"){
var cResponse = app.response({
cQuestion: "Input your password:",
cTitle: "Digital Signature",
cDefault: "testpassword",
});
if ( cResponse == null) {
app.alert("No input.");
return
}
else
SetUserPassword(cResponse);
}
// create a new signature field
var signatureField = AddSignatureField(doc);
// sign it
if(signatureField) Sign(signatureField, ACROSDK.sigHandlerName);
}
