I have just started evaluating PDF Xchange for my needs and have hit one issue.
I have a javascript I use for approving documents that I developed and have been using it for a few years with acrobat products.
Its fairly straight forward but does not work with PDF Xchange. The first issue is the security object does not seem to exist.
I attach (a much simplified) section of the code here:
Code: Select all
var pageRec = this.getPageBox({nPage: 0}); // Page dimensions
var field = this.addField({cName:'Signature', cFieldType:'signature', nPageNum:0, oCoords:[0,0,0,0]}); // Creates Signature Field
var sig = {appearance:'Approved',reason:'Approved for Manufacture',mdp:'allowNone'};
var sec = security.getHandler('Adobe.PPKLite', false);
field.rect=[320,75,375,60];
field.signatureSign({oSig: sec, oInfo: sig, bUI: false});
Is this method not available in PDF Xchange, is there a different syntax or is this opened up with the purchase version (am using a trial to determine if this will work for me).
John.