Replies

Avatar

Avatar

_Bill_Bain_

Avatar

_Bill_Bain_

_Bill_Bain_

13-12-2008

b Circling back on messages 9 and 10.



I've spent some time reading up on digital signatures and I'm still not sure how to implement, or whether it can do what I'm looking for it to do. We have a form that is completed by a sales person taking an order using Reader. After the form is completed, I used Paul's script on a button click event to change all the form fields to "read-only" and to clean up some formatting. The sales person can then save the form through Reader extensions and can email it to the customer. Whne the form is opened, Paul's script runs again on the doc:ready initialize event to present the form to the customer in the read-only version, which the customer can then print, sign and return to us (the finance folks say we've got have the paper copy -- :-(). Unfortunately we've now had instances where a customer will open the form in Acrobat (not Reader) and edit the text portions of form, and those edits are not easily seen.



What I've like to do is, as part of the button click event, have the some function available, so that, if I understand the digital signature function correctly, if the customer edits the form using Acrobat, some sort of warning is visible on the document so when we receive the printed form back, we know it's been altered.



If I can make the paper version work, I think I can move folks to the next step of e-sig and paperless forms over the Web, but I've got to restore trust in pdf as a secure medium first. I don't want to go back to Word forms (Yuck!) which some folks think are more secure after this incident.



Thanks for everyone's thoughts and help.

Avatar

13-12-2008

If you never need to modify the PDF again, (for example don't need to edit the form after the client pays, etc), would it not be simpler to just print to PDF to create an invoice that could only be printed. You might still need to apply security to the document in acrobat to prevent editing.

Avatar

Avatar

pguerett

Avatar

pguerett

pguerett

15-12-2008

If you post your email I will send it to you.

Avatar

17-12-2008

Hi Paul can you post to code. Im sure other might find it very very usefull. Thanks.

Avatar

Avatar

pguerett

Avatar

pguerett

pguerett

17-12-2008

The code will not make sense unless it is in context of the form (I believe). I will post it here and you can decide for yourself:



/*************************************************************************************

Function: LockAllFields

Description: This function will lock all fields.

IN: The parent subform. It could also be an element that contains subform like form1

OUT : nothing

**************************************************************************************/

function LockAllFields(myParentObject){



var allChildElements;

var intNumElements;

var currentElement;

var j;



//Get all the child nodes of the parent element

allChildElements = myParentObject.nodes;



//Total number of element in the object

intNumElements = allChildElements.length;



//Loop through all the child elements

for(j=0; j< intNumElements;j++){

currentElement = allChildElements.item(j);

//If the element is another subform we'll recusively call the function again

if(allChildElements.item(j).className == "subform"){

LockAllFields(currentElement);

}

//If the objects are fields then set the access to readOnly

else if(currentElement.className == "field"){



currentElement.access = "readOnly";



}

//Check for exclusion groups - Radio Buttons

else if(currentElement.className == "exclGroup"){

for(k=0; k< currentElement.nodes.length;k++){

if(currentElement.nodes.item(k).className == "field"){

//set the access for the RadioButtons individually currentElement.access = "readOnly";

}



}

}

}

}//end function

Avatar

Avatar

alsaif999

Avatar

alsaif999

alsaif999

17-06-2009

where i put this code exactly ??

this is my mail if u can send me a simple  please   i need do that important

al-baker@msn.com

Avatar

Avatar

pguerett

Avatar

pguerett

pguerett

17-06-2009

Avatar

Avatar

SciMax

Avatar

SciMax

SciMax

17-06-2009

The attachment has been queued so I cannot download it.

Could you please send me it as well?    bmorash@london.ca

Thanks.

Avatar

Avatar

alsaif999

Avatar

alsaif999

alsaif999

17-06-2009

i cannot download it !!