Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

live cycle custom component integration with other component

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.

0 Replies

Avatar

Level 6

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, ""));