Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

how to know if my form has rights to the reader extensions ( Draft or Final ) in execution

Avatar

Level 2

Hi guys,

Sorry for my english.

Anybody knows a mean to know if a form has rights of reader extensions (Draft of Final) in execution?

Thanks in advance!!

ZAMPAZAMPA.

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi,

sorry the link was broken.

I fixed it so you now can download the script.

https://workspaces.acrobat.com/?d=rBYsBzeyB9k5QAgIXOc1oA

View solution in original post

5 Replies

Avatar

Level 10

You can use a JavaScript to determine if a form already has Reader Extensions.

Here's a sample.

http://thelivecycle.blogspot.de/2011/07/check-files-for-usage-rights.html

Avatar

Level 2

Thanks radzmar,

Sorry but i can't download the form, have you got the form with the example?

ZAMPAZAMPA

Avatar

Correct answer by
Level 10

Hi,

sorry the link was broken.

I fixed it so you now can download the script.

https://workspaces.acrobat.com/?d=rBYsBzeyB9k5QAgIXOc1oA

Avatar

Employee

You can go through http://help.adobe.com/en_US/livecycle/9.0/programLC/javadoc/index.html?overview-summary.html if you want to achieve it using LiveCycle java APIs

getDocumentUsageRights

public GetUsageRightsResult getDocumentUsageRights(Document inDocument)

throws com.adobe.idp.dsc.DSCException,

ReaderExtensionsException

Returns information about the rights-enabled PDF document. To see this method used in a code example, see the Retrieving credential information using the Java API quick start in Programming with LiveCycle ES2.

Parameters:

inDocument - A com.adobe.idp.Document object that represents the PDF document from which to retrieve information.

Returns:

A UsageRightsInfo object that contains information about the rights-enabled PDF document. Null is returned if rights have not been applied to the PDF document.

Throws:

ReaderExtensionsException - If an error occurs while getting information about the rights-enabled PDF document.

  1. com.adobe.idp.dsc.DSCException

--Santosh

http://about.me/nskumar