Expand my Community achievements bar.

Reader Extensions - Adding rights programatically for attachments

Avatar

Former Community Member
Hi,



I am rendering a form programatically to users with additional usage rights (this I am doing progrmatically). I want to add rights such that user can attach a document with the rendered form. All the other usage rights seem to be working except this one. Can anybody tell me why is this happening. In the rendered form I can see the attachment button but it comes as disabled. Here is the code which I am using -



String[] formRights = new String[] {FORM_FILL_IN.value, FORM_IMPORT.value,

FORM_EXPORT.value, FORM_ADD.value, FORM_DELETE.value,

FORM_SUBMIT_STAND_ALONE.value, FORM_SPAWN_TEMPLATE.value, FORM_ONLINE.value,ANNOTATION_CREATE.value, ANNOTATION_MODIFY.value, ANNOTATION_DELETE.value,ANNOTATION_IMPORT.value, ANNOTATION_COPY.value,ANNOTATION_EXPORT.value, EF_CREATE.value};



Credential cred = new Credential("XXXX", "XXXX".getBytes("UTF-8"));

String msg = "You can fill in and do other form-related operations on this document.";

pdf.setUsageRights(cred, formRights, msg, false);



Thanks and regards,

Shivajiv.
1 Reply

Avatar

Former Community Member
Adding EF_IMPORT.value worked for me.

Thanks to Chris.



Thanks and regards,

Shivajiv.