Expand my Community achievements bar.

XML signature in huge form

Avatar

Level 2

Hi,

I have an eForm with 400+ fields. I have to apply XML signature on this form. For this, I have written following code on mousedown event of signature field:

var oSigs = xfa.signature.enumerate();

var iNum = oSigs.length;

if(iNum==0){

var oData = xfa.resolveNode("xfa.data.MainForm");

xfa.signature.sign(oData,"xfa.data.signatures", "Employer");

}

else if (iNum==1) {

for (var i=0; i < iNum; i++)

{

    var oChild = oSigs.item(i);

    xfa.signature.clear(oChild);

   

}

}

On applying XML signature it is taking too much time. In fact, sometimes I have to kill Adobe Reader process from Task Manager. Is it becuase of enormity of the form? The same scenario is working fine for smaller forms.

0 Replies