|
|
To reinstate access to a revoked document using the Rights Management web service API, perform the following tasks:
•
• Using the Microsoft .NET client assembly, create a RightsManagementServiceService object by invoking its default constructor. Next, set authentication values required to invoke LiveCycle ES.
• Create a BLOB object by using its constructor. The BLOB object is used to store a revoked PDF document to which access is reinstated.
• Create a System.IO.FileStream object by invoking its constructor and passing a string value that represents the file location of the revoked PDF document and the mode in which to open the file.
• Create a byte array that stores the content of the System.IO.FileStream object. You can determine the size of the byte array by getting the System.IO.FileStream object’s Length property.
• Populate the byte array with stream data by invoking the System.IO.FileStream object’s Read method and passing the byte array, the starting position, and the stream length to read.
•
• Retrieve the license identifier value of the revoked document by invoking the RightsManagementServiceService object’s getLicenseID method and passing the BLOB object that represents the revoked document. This method returns a string value that represents the license identifier.
• Reinstate access to the revoked PDF document by invoking the RightsManagementServiceService object’s unrevokeLicense method and passing a string value that specifies the license identifier value of the revoked PDF document (specify the return value of the RightsManagementServiceService object’s getLicenseId method).
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/livecycle/es/sdkHelp/programmer/sdkHelp/policiesReinstateDocuments.83.4.html