com.adobe.livecycle.rightsmanagement.client
Interface RightsManagementReaderExtensionService


public interface RightsManagementReaderExtensionService

RightsManagementReaderExtensionService interface provides methods Reader Extending a DRM-protected document. Before using the interface, copy all the .jar files from AEM_SDK_Location\client-libs\thirdparty and following jar files from AEM_SDK_Location\client-libs\common folder to the library folder of the project: adobe-usermanager-client.jar, adobe-rightsmanagement- client.jar, adobe-livecycle-client.jar, aglj40.jar, pdfcore.jar, pdfencryption.jar, pdfservices.jar, pdfservices_extraction.jar, rideau.jar, xmpcore.jar, adobe-xfa-3.6.0.jar


Method Summary
 java.io.InputStream applyUsageRights(java.io.InputStream inputFile, java.io.File certFile, java.lang.String credentialPassword, UsageRights usageRights)
          Applies provided Reader Extension usage rights to PDF documents.
 GetUsageRightsResult getDocumentUsageRights(java.io.InputStream inDoc)
          returns Reader Extension usage rights applied to the supplied PDF document.
 java.io.InputStream removeUsageRights(java.io.InputStream inputFile)
          Removes Reader Extension usage rights from PDF document.
 

Method Detail

applyUsageRights

java.io.InputStream applyUsageRights(java.io.InputStream inputFile,
                                     java.io.File certFile,
                                     java.lang.String credentialPassword,
                                     UsageRights usageRights)
                                     throws java.lang.Exception
Applies provided Reader Extension usage rights to PDF documents. The API works with both Rights Management/Document Security protected and non-Rights Management/Document Security protected PDF documents.

Parameters:
inputFile - InputStream of the PDF document. The input document can be Rights Management/Document Security protected PDF document or non-Rights Management/Document Security protected PDF document. The InputStream current pointer is reset.
certFile - a .jks file, a keystore which points to the certificate which has Reader Extension permissions. The certificate is used to apply Reader Extension usage rights.
credentialPassword - password for the keystore.
usageRights - UsageRights object which specifies Reader Extension usage rights.
Returns:
an InputStream that contains the reference to the reader extensions enabled Rights Management/Document Security protected PDF document.
Throws:
java.lang.Exception

removeUsageRights

java.io.InputStream removeUsageRights(java.io.InputStream inputFile)
                                      throws java.lang.Exception
Removes Reader Extension usage rights from PDF document. The API works with both Rights Management/Document Security protected and non-Rights Management/Document Security protected PDF documents.

Parameters:
inputFile - InputStream of document. The input document can be Rights Management/Document Security protected PDF document or non-Rights Management/Document Security protected PDF document. The InputStream current pointer is reset.
Returns:
an InputStream that contains the reference to the Reader Extensions enabled PDF document.
Throws:
java.lang.Exception

getDocumentUsageRights

GetUsageRightsResult getDocumentUsageRights(java.io.InputStream inDoc)
                                            throws java.lang.Exception
returns Reader Extension usage rights applied to the supplied PDF document. The API works with both Rights Management/Document Security protected and non-Rights Management/Document Security protected PDF documents.

Parameters:
inDoc - InputStream of Reader Extension enabled PDF document whose UsageRights needs to be determined. The InputStream current pointer is reset.
Returns:
GetUsageRightsResult object containing the Reader Extension usage rights.
Throws:
java.lang.Exception