I have a pdf created in LifeCycle and need for the users to be able to attach files in the Reader. I seen various samples on security settings and would like to know how to assign additional user rights so they can add attachments or any way to enable that feature.
the following technique of assigning a variable to the target of, for example, a click event, to access the
current document:
var myDoc = event.target;
myDoc.importDataObject("pdfAttachment");
This is necessary because the Doc object is typically referenced in an Acrobat form using “this”, as in
“this.getAnnots()” to refer to the current document. But in LiveCycle Designer JavaScript, “this”
refers to the current XML form object, not the current document. Hence the above convention is used.
Once the Doc object has been accessed, most of its methods and properties can be used in the usual
way, as in the above example where the user is prompted to add an attachment to the PDF file.
My favorite quote - "Success is the ability to go from one failure to another with no loss of enthusiasm.