Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Adding PDF Viewer - not sure how to set 'configure a context aware configuration in order to use these services'

Avatar

Level 3

Hi,

 

I want to use this PDF viewer core component but unable to author it as I need to add Adobe API Credentials to some context aware configuration.

I have the credentials but not sure how to add it to the configuration.
Any guidance with some example or screenshots will be a great help.

 

Component link:

https://experienceleague.adobe.com/docs/experience-manager-core-components/using/wcm-components/pdf-...

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @bpeddapudi ,

 

You need to configure the context aware configuration like below-

 

context aware config com.adobe.cq.wcm.core.components.internal.services.pdfviewer.PdfViewerCaConfig

Client key you will get from Document service-

https://documentservices.adobe.com/dc-integration-creation-app-cdn/main.html

 

https://github.com/adobe/aem-core-wcm-components/tree/main/content/src/content/jcr_root/apps/core/wc...

 

Ritesh_Mittal_0-1676096682029.png

 

For Context Aware configuration, you can refer below video-

https://www.youtube.com/watch?v=tj6enQrdaE0

 

Thanks,

Ritesh Mittal

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

Hi @bpeddapudi ,

 

You need to configure the context aware configuration like below-

 

context aware config com.adobe.cq.wcm.core.components.internal.services.pdfviewer.PdfViewerCaConfig

Client key you will get from Document service-

https://documentservices.adobe.com/dc-integration-creation-app-cdn/main.html

 

https://github.com/adobe/aem-core-wcm-components/tree/main/content/src/content/jcr_root/apps/core/wc...

 

Ritesh_Mittal_0-1676096682029.png

 

For Context Aware configuration, you can refer below video-

https://www.youtube.com/watch?v=tj6enQrdaE0

 

Thanks,

Ritesh Mittal

Avatar

Level 3

Hi Ritesh,

 

Youtube video helped me to get this component up. Thank yo so much.

 

Bhargav.