Add Attachments button

515 views
Skip to first unread message

Shay

unread,
Feb 29, 2012, 11:04:14 AM2/29/12
to Adobe LiveCycle Developers
Hi everyone!

I'm new to adobe livecycle and hope this isn't a silly question...

I'm trying to get an add attachments button to work for both users
with Adobe Reader and Adobe Acrobat. I've been reading that in order
to do this I need to "apply usage rights using the reader extension on
the server." I'm wondering if anyone has done this and could elaborate
a little more on what I need to do to set this up.

Thanks so much for any help you can provide!

- Shaylyn

fred.pantalone

unread,
Feb 29, 2012, 11:17:20 AM2/29/12
to Adobe LiveCycle Developers
There are no silly questions, only silly walks...

When using Reader, only documents that have been "Reader Extended" can
have attachments added. Does your organization have LiveCycle Reader
Extensions? It is a server-side enterprise software application.
Without it, you won't be able to accomplish what you want for your
Reader users.

Fred

Brooks, Craig

unread,
Feb 29, 2012, 11:21:59 AM2/29/12
to live...@googlegroups.com
Shaylyn,
 
Assuming you have code behind your button, you’ll need to apply rights as outlined below. You can turn on additional capabilities, but your need these at a minimum.
 
You’ll need to have something along these lines…
 
var embeddedObj = event.target;
var fAttachments = embeddedObj.dataObjects;
embeddedObj.importDataObject(fAttachments.length);
               
 
-Craig
 

Shaylyn

unread,
Mar 1, 2012, 12:13:09 PM3/1/12
to live...@googlegroups.com
Thank you both! I am looking into if we are using server-side capabilities.

Craig Martin

unread,
Sep 24, 2012, 8:43:02 PM9/24/12
to live...@googlegroups.com
Reading up on your post....  as I have a similar situation where I
want the endusers of either Reader or Acrobat to be able to attach
files to the PDF when submitting by email.   How can one tell if they
have the LiveCycle Reader Extension?  Do I need the code Craig suggests below?

Also, is there specific code for an "add Attachments" button? 

Thanks in advance!

Craig

fred.pantalone

unread,
Sep 25, 2012, 11:43:47 AM9/25/12
to live...@googlegroups.com
Hi Craig,

The end-user doesn't have Reader Extensions, individual documents must be Reader-extended. Once you've Reader-extended a document for attachments, the built-in attachments functionality can be used or you can create an attachments user interface on your form. 

Fred
Reply all
Reply to author
Forward
0 new messages