Expand my Community achievements bar.

July 31st AEM Gems Webinar: Elevate your AEM development to master the integration of private GitHub repositories within AEM Cloud Manager.

live cycle custom component integration with other component

Avatar

Former Community Member

if i develop a custom component and that component internally calling other component such as pdfg ,asssembling, reader extension,encryption etc. how can make use of those services in my custom component programatically.

1 Reply

Avatar

Former Community Member

There are Java API for those services. If you try to import any classes to use the APIs and get errors, don't add the JARs. In component.xml, after <class-path>..</class-path> add this for reader extensions.

    <import-packages>

        <package version="1.0">com.adobe.livecycle.readerextensions.client</package>

    </import-packages>

You do not need to pass in properties to the creation of the client factory.

        ServiceClientFactory serviceFactory = ServiceClientFactory.createInstance();

        ReaderExtensionsServiceClient reClient = new ReaderExtensionsServiceClient(serviceFactory);

.

.

.

        outDoc = reClient.applyUsageRights(inDoc, credentialAlias, "xxxxxxx", new ReaderExtensionsOptionSpec(useRights, ""));