Acrobat User Community Forums

You are not logged in.     Log in to your AUC account.     Don't have an account? Sign up today

#1 2007-10-15 07:12:39

Capor
Member
Registered: 2007-10-15
Posts: 0

Adding Attachments

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.


My Product Information:
LiveCycle Designer Pro 8 / Windows

Offline

 

#2 2007-10-15 11:01:11

pddesigner
Member

Registered: 2007-04-24
Posts: 55

Re: Adding Attachments

If you need to use the Acrobat Doc object in a LiveCycle Designer form, you must adapt your code to use
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.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson

AcrobatUsers.com  >>  User Groups • News • Events • Articles • Blogs • How To • Resources • Member Log in