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
BedrockMission!

Learn More

View all

Sign in to view all badges

Apply Reader Extension on Interactive Document

Avatar

Avatar
Give Back
Level 2
sashish
Level 2

Likes

5 likes

Total Posts

13 posts

Correct Reply

0 solutions
Top badges earned
Give Back
Boost 5
Boost 3
Boost 1
View profile

Avatar
Give Back
Level 2
sashish
Level 2

Likes

5 likes

Total Posts

13 posts

Correct Reply

0 solutions
Top badges earned
Give Back
Boost 5
Boost 3
Boost 1
View profile
sashish
Level 2

17-01-2021

While using reader extension service in Adaptive form, i have set up keystore already and wrote java code to apply usage write but getting exception like below:

com.adobe.fd.docassurance.client.api.impl.DocAssuranceServiceImpl Exception while applying usage rights in DocAssuranceService
com.adobe.fd.readerextensions.client.ProcessingException: AEM-REX-001-008: Unable to apply the requested usage rights to the given document.
at com.adobe.fd.readerextensions.service.impl.ReaderExtensionsServiceImpl.applyUsageRights(ReaderExtensionsServiceImpl.java:215) [com.adobe.aemfd.adobe-aemfd-readerextensions:6.0.26]
at com.adobe.fd.docassurance.client.api.impl.DocAssuranceServiceImpl.addReaderExtensions(DocAssuranceServiceImpl.java:887) [adobe-aemfd-docassurance:6.0.50]
at com.adobe.fd.docassurance.client.api.impl.DocAssuranceServiceImpl.secureDocument(DocAssuranceServiceImpl.java:242) [adobe-aemfd-docassurance:6.0.50]

 

Can anyone help what may be missing here.

 

Thanks and regards,

Ashish Saxena

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Springboard
Level 10
Mayank_Gandhi
Level 10

Likes

316 likes

Total Posts

1,139 posts

Correct Reply

184 solutions
Top badges earned
Springboard
Establish
Validate 1
Contributor 2
Ignite 5
View profile

Avatar
Springboard
Level 10
Mayank_Gandhi
Level 10

Likes

316 likes

Total Posts

1,139 posts

Correct Reply

184 solutions
Top badges earned
Springboard
Establish
Validate 1
Contributor 2
Ignite 5
View profile
Mayank_Gandhi
Level 10

03-02-2021

@sashish That should not make difference ideally. Make sure you are using a supported version of Linux.

Answers (17)

Answers (17)

Avatar

Avatar
Give Back
Level 2
sashish
Level 2

Likes

5 likes

Total Posts

13 posts

Correct Reply

0 solutions
Top badges earned
Give Back
Boost 5
Boost 3
Boost 1
View profile

Avatar
Give Back
Level 2
sashish
Level 2

Likes

5 likes

Total Posts

13 posts

Correct Reply

0 solutions
Top badges earned
Give Back
Boost 5
Boost 3
Boost 1
View profile
sashish
Level 2

18-01-2021

Hi @GirishBedekar 

PFA screenshot of key store and trust store.

Trust store is global and also its not mentioned in adobe documents that we have to setup trust store.

Its mentioned to setup only keystore.

Keystore:

sashish_0-1611041058651.png

 

truststore:

sashish_0-1611041126600.png

 

 

 

Avatar

Avatar
Ignite 1
Level 7
GirishBedekar
Level 7

Likes

163 likes

Total Posts

233 posts

Correct Reply

36 solutions
Top badges earned
Ignite 1
Give Back 5
Give Back 3
Give Back 10
Give Back
View profile

Avatar
Ignite 1
Level 7
GirishBedekar
Level 7

Likes

163 likes

Total Posts

233 posts

Correct Reply

36 solutions
Top badges earned
Ignite 1
Give Back 5
Give Back 3
Give Back 10
Give Back
View profile
GirishBedekar
Level 7

18-01-2021

Also I think trust store is global 

Avatar

Avatar
Ignite 1
Level 7
GirishBedekar
Level 7

Likes

163 likes

Total Posts

233 posts

Correct Reply

36 solutions
Top badges earned
Ignite 1
Give Back 5
Give Back 3
Give Back 10
Give Back
View profile

Avatar
Ignite 1
Level 7
GirishBedekar
Level 7

Likes

163 likes

Total Posts

233 posts

Correct Reply

36 solutions
Top badges earned
Ignite 1
Give Back 5
Give Back 3
Give Back 10
Give Back
View profile
GirishBedekar
Level 7

18-01-2021

Send us the screen shot of the certificate added to fd service user

Avatar

Avatar
Give Back
Level 2
sashish
Level 2

Likes

5 likes

Total Posts

13 posts

Correct Reply

0 solutions
Top badges earned
Give Back
Boost 5
Boost 3
Boost 1
View profile

Avatar
Give Back
Level 2
sashish
Level 2

Likes

5 likes

Total Posts

13 posts

Correct Reply

0 solutions
Top badges earned
Give Back
Boost 5
Boost 3
Boost 1
View profile
sashish
Level 2

18-01-2021

hi @GirishBedekar ,

 

Trust store setup is also needed here?

Avatar

Avatar
Ignite 1
Level 7
GirishBedekar
Level 7

Likes

163 likes

Total Posts

233 posts

Correct Reply

36 solutions
Top badges earned
Ignite 1
Give Back 5
Give Back 3
Give Back 10
Give Back
View profile

Avatar
Ignite 1
Level 7
GirishBedekar
Level 7

Likes

163 likes

Total Posts

233 posts

Correct Reply

36 solutions
Top badges earned
Ignite 1
Give Back 5
Give Back 3
Give Back 10
Give Back
View profile
GirishBedekar
Level 7

18-01-2021

Avatar

Avatar
Give Back
Level 2
sashish
Level 2

Likes

5 likes

Total Posts

13 posts

Correct Reply

0 solutions
Top badges earned
Give Back
Boost 5
Boost 3
Boost 1
View profile

Avatar
Give Back
Level 2
sashish
Level 2

Likes

5 likes

Total Posts

13 posts

Correct Reply

0 solutions
Top badges earned
Give Back
Boost 5
Boost 3
Boost 1
View profile
sashish
Level 2

18-01-2021

Hi @Mayank_Gandhi ,

 

I am doing this in local author so using admin cred only.

Avatar

Avatar
Give Back
Level 2
sashish
Level 2

Likes

5 likes

Total Posts

13 posts

Correct Reply

0 solutions
Top badges earned
Give Back
Boost 5
Boost 3
Boost 1
View profile

Avatar
Give Back
Level 2
sashish
Level 2

Likes

5 likes

Total Posts

13 posts

Correct Reply

0 solutions
Top badges earned
Give Back
Boost 5
Boost 3
Boost 1
View profile
sashish
Level 2

18-01-2021

@GirishBedekar Hi Girish

Yes all bundles are in active state. 

Avatar

Avatar
Give Back
Level 2
sashish
Level 2

Likes

5 likes

Total Posts

13 posts

Correct Reply

0 solutions
Top badges earned
Give Back
Boost 5
Boost 3
Boost 1
View profile

Avatar
Give Back
Level 2
sashish
Level 2

Likes

5 likes

Total Posts

13 posts

Correct Reply

0 solutions
Top badges earned
Give Back
Boost 5
Boost 3
Boost 1
View profile
sashish
Level 2

18-01-2021

@Mayank_Gandhi Hi Mayank, Its an osgi instance and i have already added bouncy castle.

I see this might be the issue:

com.adobe.fd.readerextensions.service.impl.ReaderExtensionsServiceImpl AEM-REX-001-008: Unable to apply the requested usage rights to the given document.
com.adobe.granite.keystore.KeyStoreNotInitialisedException: Uninitialised key store for user data

 

How to initialized key store.

 

 

Avatar

Avatar
Ignite 1
Level 7
GirishBedekar
Level 7

Likes

163 likes

Total Posts

233 posts

Correct Reply

36 solutions
Top badges earned
Ignite 1
Give Back 5
Give Back 3
Give Back 10
Give Back
View profile

Avatar
Ignite 1
Level 7
GirishBedekar
Level 7

Likes

163 likes

Total Posts

233 posts

Correct Reply

36 solutions
Top badges earned
Ignite 1
Give Back 5
Give Back 3
Give Back 10
Give Back
View profile
GirishBedekar
Level 7

18-01-2021

Are all the bundles in active state

Avatar

Avatar
Springboard
Level 10
Mayank_Gandhi
Level 10

Likes

316 likes

Total Posts

1,139 posts

Correct Reply

184 solutions
Top badges earned
Springboard
Establish
Validate 1
Contributor 2
Ignite 5
View profile

Avatar
Springboard
Level 10
Mayank_Gandhi
Level 10

Likes

316 likes

Total Posts

1,139 posts

Correct Reply

184 solutions
Top badges earned
Springboard
Establish
Validate 1
Contributor 2
Ignite 5
View profile
Mayank_Gandhi
Level 10

18-01-2021

@sashish  I assume it's an OSGi instance? Hope you have added bouncy castle in sling properties.

Avatar

Avatar
Ignite 1
Level 7
GirishBedekar
Level 7

Likes

163 likes

Total Posts

233 posts

Correct Reply

36 solutions
Top badges earned
Ignite 1
Give Back 5
Give Back 3
Give Back 10
Give Back
View profile

Avatar
Ignite 1
Level 7
GirishBedekar
Level 7

Likes

163 likes

Total Posts

233 posts

Correct Reply

36 solutions
Top badges earned
Ignite 1
Give Back 5
Give Back 3
Give Back 10
Give Back
View profile
GirishBedekar
Level 7

17-01-2021

Is it happening to all the documents?

Avatar

Avatar
Ignite 1
Level 7
GirishBedekar
Level 7

Likes

163 likes

Total Posts

233 posts

Correct Reply

36 solutions
Top badges earned
Ignite 1
Give Back 5
Give Back 3
Give Back 10
Give Back
View profile

Avatar
Ignite 1
Level 7
GirishBedekar
Level 7

Likes

163 likes

Total Posts

233 posts

Correct Reply

36 solutions
Top badges earned
Ignite 1
Give Back 5
Give Back 3
Give Back 10
Give Back
View profile
GirishBedekar
Level 7

17-01-2021

Avatar

Avatar
Ignite 1
Level 7
GirishBedekar
Level 7

Likes

163 likes

Total Posts

233 posts

Correct Reply

36 solutions
Top badges earned
Ignite 1
Give Back 5
Give Back 3
Give Back 10
Give Back
View profile

Avatar
Ignite 1
Level 7
GirishBedekar
Level 7

Likes

163 likes

Total Posts

233 posts

Correct Reply

36 solutions
Top badges earned
Ignite 1
Give Back 5
Give Back 3
Give Back 10
Give Back
View profile
GirishBedekar
Level 7

17-01-2021

I think you need to add the certificate to forms and document service user

 

 

Avatar

Avatar
Give Back
Level 2
sashish
Level 2

Likes

5 likes

Total Posts

13 posts

Correct Reply

0 solutions
Top badges earned
Give Back
Boost 5
Boost 3
Boost 1
View profile

Avatar
Give Back
Level 2
sashish
Level 2

Likes

5 likes

Total Posts

13 posts

Correct Reply

0 solutions
Top badges earned
Give Back
Boost 5
Boost 3
Boost 1
View profile
sashish
Level 2

04-02-2021

@Mayank_Gandhi Hi Mayank,

Below is the linux version 

Red Hat Enterprise Linux Server release 7.9 (Maipo)

 

As the document is having more data , that might be the reason its taking time to apply usage right?

But its fast in windows system with same data.

Avatar

Avatar
Give Back
Level 2
sashish
Level 2

Likes

5 likes

Total Posts

13 posts

Correct Reply

0 solutions
Top badges earned
Give Back
Boost 5
Boost 3
Boost 1
View profile

Avatar
Give Back
Level 2
sashish
Level 2

Likes

5 likes

Total Posts

13 posts

Correct Reply

0 solutions
Top badges earned
Give Back
Boost 5
Boost 3
Boost 1
View profile
sashish
Level 2

03-02-2021

@Mayank_Gandhi That is resolved working fine in windows but applying usage right taking 8-10 minutes in linux server. i m not sure it OS issue or anything else? do you have any idea about it.

public com.adobe.aemfd.docmanager.Document enableReaderExtension(com.adobe.aemfd.docmanager.Document document,
ResourceResolver resolver) {

com.adobe.aemfd.docmanager.Document documentToReturn=null;
try{UsageRights usageRights = new UsageRights();
usageRights.setEnabledComments(true);
usageRights.setEnabledFormFillIn(true);

ReaderExtensionOptions readerOpts = ReaderExtensionOptions.getInstance();
readerOpts
.setReOptions(new ReaderExtensionsOptionSpec(usageRights, "Enable commenting in PDF and Form Fill In"));
readerOpts.setCredentialAlias("realias");
readerOpts.setResourceResolver(resolver);
ReaderExtensionsOptionSpec reOptionsSpec = new ReaderExtensionsOptionSpec(usageRights, "Sample ARES");
readerOpts.setReOptions(reOptionsSpec);
documentToReturn=docAssuranceService.secureDocument(document, null, null, readerOpts, null);
}catch(Exception ex){
logger.error("error in securing document",ex.getMessage());
ex.printStackTrace();
}
return documentToReturn;
}

 

I am using above method to apply usage rights but the below line returning response in 8-20 minutes which i observed.

documentToReturn=docAssuranceService.secureDocument(document, null, null, readerOpts, null);

 

Please suggest if its related to OS as same thing is working fine in windows.

 

 

Avatar

Avatar
Springboard
Level 10
Mayank_Gandhi
Level 10

Likes

316 likes

Total Posts

1,139 posts

Correct Reply

184 solutions
Top badges earned
Springboard
Establish
Validate 1
Contributor 2
Ignite 5
View profile

Avatar
Springboard
Level 10
Mayank_Gandhi
Level 10

Likes

316 likes

Total Posts

1,139 posts

Correct Reply

184 solutions
Top badges earned
Springboard
Establish
Validate 1
Contributor 2
Ignite 5
View profile
Mayank_Gandhi
Level 10

01-02-2021

@sashish Is this resolved for you?

Avatar

Avatar
Ignite 5
Employee
workflowuser
Employee

Likes

136 likes

Total Posts

444 posts

Correct Reply

70 solutions
Top badges earned
Ignite 5
Ignite 3
Ignite 1
Give Back 50
Give Back 5
View profile

Avatar
Ignite 5
Employee
workflowuser
Employee

Likes

136 likes

Total Posts

444 posts

Correct Reply

70 solutions
Top badges earned
Ignite 5
Ignite 3
Ignite 1
Give Back 50
Give Back 5
View profile
workflowuser
Employee

19-01-2021

@sashish  have sent you private message