|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
---|
java.io.InputStream applyUsageRights(java.io.InputStream inputFile, java.io.File certFile, java.lang.String credentialPassword, UsageRights usageRights) throws java.lang.Exception
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.
java.lang.Exception
java.io.InputStream removeUsageRights(java.io.InputStream inputFile) throws java.lang.Exception
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.
java.lang.Exception
GetUsageRightsResult getDocumentUsageRights(java.io.InputStream inDoc) throws java.lang.Exception
inDoc
- InputStream of Reader Extension enabled PDF document whose UsageRights needs to be determined. The InputStream current pointer is reset.
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |